Skip to content

Commit

Permalink
refactor: wrap execSync with encoding: utf-8 (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwlui authored and JustinBeckwith committed Apr 5, 2019
1 parent 385c64d commit 015be8b
Showing 1 changed file with 3 additions and 1 deletion.
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('quickstart', () => {
it('should analyze sentiment in text', async () => {
Expand Down

0 comments on commit 015be8b

Please sign in to comment.