Skip to content

Commit 6429dc4

Browse files
jkwluiyoshi-automation
authored andcommitted
refactor: wrap execSync with encoding: utf-8
refactor: wrap execSync with encoding: utf-8 #293 automerged by dpebot
1 parent 036a669 commit 6429dc4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

handwritten/logging-winston/samples/system-test/quickstart.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717

1818
const path = require('path');
1919
const {assert} = require('chai');
20-
const {execSync} = require('child_process');
20+
const cp = require('child_process');
21+
22+
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2123

2224
describe('QuickStart', () => {
2325
it('should write using winston', async () => {

0 commit comments

Comments
 (0)