Skip to content

Commit 2539f9e

Browse files
jkwluiJustinBeckwith
authored andcommitted
refactor: wrap execSync with encoding: utf-8 (#196)
1 parent 56fa69a commit 2539f9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cloud-tasks/test/test.samples.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
'use strict';
1616

1717
const {assert} = require('chai');
18-
const {execSync} = require('child_process');
18+
const cp = require('child_process');
1919
const uuid = require('uuid');
2020

21+
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
22+
2123
const PROJECT_ID = process.env.GCLOUD_PROJECT;
2224
const queueName = `gcloud-${uuid.v4().split('-')[0]}`;
2325

0 commit comments

Comments
 (0)