diff --git a/packages/google-cloud-language/samples/test/quickstart.test.js b/packages/google-cloud-language/samples/test/quickstart.test.js index be26e4228de..b2e879dc9b3 100644 --- a/packages/google-cloud-language/samples/test/quickstart.test.js +++ b/packages/google-cloud-language/samples/test/quickstart.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('quickstart', () => { it('should analyze sentiment in text', async () => {