Skip to content

Commit

Permalink
refactor: wrap execSync with encoding: utf-8 (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwlui authored and Ace Nassri committed Nov 11, 2022
1 parent e54aab4 commit f02c538
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kms/system-test/kms.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
const fs = require(`fs`);
const path = require(`path`);
const {assert} = require('chai');
const {execSync} = require('child_process');
const cp = require('child_process');
const uuid = require(`uuid`);
const {promisify} = require('util');
const unlink = promisify(fs.unlink);

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

const keyRingName = `test-ring-${uuid.v4()}`;
const keyNameOne = `test-key-${uuid.v4()}`;
const member = `allAuthenticatedUsers`;
Expand Down

0 comments on commit f02c538

Please sign in to comment.