From 915851504188578a09362ab26457b283deac3bf0 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 30 Dec 2019 11:14:40 -0800 Subject: [PATCH] refactor: use explicit mocha imports (#497) --- dialogflow/system-test/.eslintrc.yml | 3 --- dialogflow/system-test/detect.test.js | 1 + dialogflow/system-test/detect.v2beta1.test.js | 1 + dialogflow/system-test/resource.test.js | 1 + 4 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 dialogflow/system-test/.eslintrc.yml diff --git a/dialogflow/system-test/.eslintrc.yml b/dialogflow/system-test/.eslintrc.yml deleted file mode 100644 index 6db2a46c53..0000000000 --- a/dialogflow/system-test/.eslintrc.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -env: - mocha: true diff --git a/dialogflow/system-test/detect.test.js b/dialogflow/system-test/detect.test.js index 39d9eea9a8..38d7a6ad26 100644 --- a/dialogflow/system-test/detect.test.js +++ b/dialogflow/system-test/detect.test.js @@ -16,6 +16,7 @@ const path = require('path'); const {assert} = require('chai'); +const {describe, it} = require('mocha'); const execSync = require('child_process').execSync; const cmd = 'node detect.js'; const cmd_tts = 'node detect-intent-TTS-response.v2.js'; diff --git a/dialogflow/system-test/detect.v2beta1.test.js b/dialogflow/system-test/detect.v2beta1.test.js index adbd902272..9fe7e72493 100644 --- a/dialogflow/system-test/detect.v2beta1.test.js +++ b/dialogflow/system-test/detect.v2beta1.test.js @@ -15,6 +15,7 @@ 'use strict'; const {assert} = require('chai'); +const {describe, it} = require('mocha'); const {execSync} = require('child_process'); const uuid = require('uuid/v4'); diff --git a/dialogflow/system-test/resource.test.js b/dialogflow/system-test/resource.test.js index 8bb7be5aaa..3a66f5596a 100644 --- a/dialogflow/system-test/resource.test.js +++ b/dialogflow/system-test/resource.test.js @@ -15,6 +15,7 @@ 'use strict'; const {assert} = require('chai'); +const {describe, it} = require('mocha'); const execSync = require('child_process').execSync; const uuid = require('uuid'); const exec = cmd => execSync(cmd, {encoding: 'utf8'});