From 2bdf71b5c38a6ee5077a1bc89e312bb34f5543d1 Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Thu, 4 Apr 2019 18:39:15 -0700 Subject: [PATCH] refactor: wrap execSync with encoding: utf-8 (#177) --- container/snippets/system-test/sample.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/container/snippets/system-test/sample.test.js b/container/snippets/system-test/sample.test.js index afad86dee7..d280c0eb94 100644 --- a/container/snippets/system-test/sample.test.js +++ b/container/snippets/system-test/sample.test.js @@ -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 () => {