Skip to content

Commit

Permalink
refactor: wrap execSync with encoding: utf-8 (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwlui authored and Ace Nassri committed Nov 17, 2022
1 parent 0e085b8 commit 2bdf71b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion container/snippets/system-test/sample.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
'use strict';

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

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

describe('container samples', () => {
it('should run the quickstart', async () => {
Expand Down

0 comments on commit 2bdf71b

Please sign in to comment.