Skip to content

Commit fbea514

Browse files
jkwluiJustinBeckwith
authored andcommitted
refactor: wrap execSync with encoding: utf-8 (#144)
1 parent 95ac5bd commit fbea514

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kms/system-test/kms.test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717
const fs = require(`fs`);
1818
const path = require(`path`);
1919
const {assert} = require('chai');
20-
const {execSync} = require('child_process');
20+
const cp = require('child_process');
2121
const uuid = require(`uuid`);
2222
const {promisify} = require('util');
2323
const unlink = promisify(fs.unlink);
2424

25+
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
26+
2527
const keyRingName = `test-ring-${uuid.v4()}`;
2628
const keyNameOne = `test-key-${uuid.v4()}`;
2729
const member = `allAuthenticatedUsers`;

0 commit comments

Comments
 (0)