Skip to content

Commit

Permalink
refactor: wrap execSync with encoding: utf-8 (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwlui authored and JustinBeckwith committed Apr 5, 2019
1 parent 56fa69a commit 2539f9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloud-tasks/test/test.samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
'use strict';

const {assert} = require('chai');
const {execSync} = require('child_process');
const cp = require('child_process');
const uuid = require('uuid');

const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

const PROJECT_ID = process.env.GCLOUD_PROJECT;
const queueName = `gcloud-${uuid.v4().split('-')[0]}`;

Expand Down

0 comments on commit 2539f9e

Please sign in to comment.