From d4b2840e9b8231f40172864bd62a739a62f084bf Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 30 Dec 2019 13:18:29 -0800 Subject: [PATCH] refactor: use explicit mocha imports (#496) --- speech/system-test/.eslintrc.yml | 2 -- speech/system-test/MicrophoneStream.test.js | 1 + speech/system-test/betaFeatures.test.js | 1 + speech/system-test/quickstart.test.js | 1 + speech/system-test/recognize.test.js | 1 + speech/system-test/recognize.v1p1beta1.test.js | 1 + 6 files changed, 5 insertions(+), 2 deletions(-) diff --git a/speech/system-test/.eslintrc.yml b/speech/system-test/.eslintrc.yml index 752164361d..c0289282a6 100644 --- a/speech/system-test/.eslintrc.yml +++ b/speech/system-test/.eslintrc.yml @@ -1,6 +1,4 @@ --- -env: - mocha: true rules: node/no-unpublished-require: off node/no-unsupported-features: off diff --git a/speech/system-test/MicrophoneStream.test.js b/speech/system-test/MicrophoneStream.test.js index 3130bbd738..0fd1ef3717 100644 --- a/speech/system-test/MicrophoneStream.test.js +++ b/speech/system-test/MicrophoneStream.test.js @@ -16,6 +16,7 @@ const path = require('path'); const {assert} = require('chai'); +const {describe, it} = require('mocha'); const cp = require('child_process'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/speech/system-test/betaFeatures.test.js b/speech/system-test/betaFeatures.test.js index 7803e047bc..fdfbe498a4 100644 --- a/speech/system-test/betaFeatures.test.js +++ b/speech/system-test/betaFeatures.test.js @@ -16,6 +16,7 @@ const path = require('path'); const {assert} = require('chai'); +const {describe, it} = require('mocha'); const cp = require('child_process'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/speech/system-test/quickstart.test.js b/speech/system-test/quickstart.test.js index aedb1c84d6..5fcd65ec75 100644 --- a/speech/system-test/quickstart.test.js +++ b/speech/system-test/quickstart.test.js @@ -18,6 +18,7 @@ const path = require('path'); const {assert} = require('chai'); +const {describe, it} = require('mocha'); const cp = require('child_process'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); diff --git a/speech/system-test/recognize.test.js b/speech/system-test/recognize.test.js index 86e991c299..fd6d516f7f 100644 --- a/speech/system-test/recognize.test.js +++ b/speech/system-test/recognize.test.js @@ -17,6 +17,7 @@ const path = require('path'); const {Storage} = require('@google-cloud/storage'); const {assert} = require('chai'); +const {describe, it, before, after} = require('mocha'); const uuid = require('uuid'); const cp = require('child_process'); diff --git a/speech/system-test/recognize.v1p1beta1.test.js b/speech/system-test/recognize.v1p1beta1.test.js index 5378e98c78..1a877f4f80 100644 --- a/speech/system-test/recognize.v1p1beta1.test.js +++ b/speech/system-test/recognize.v1p1beta1.test.js @@ -16,6 +16,7 @@ const path = require('path'); const {assert} = require('chai'); +const {describe, it} = require('mocha'); const cp = require('child_process'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});