Skip to content

Commit d4b2840

Browse files
JustinBeckwithAce Nassri
authored and
Ace Nassri
committed
refactor: use explicit mocha imports (#496)
1 parent 078b897 commit d4b2840

6 files changed

+5
-2
lines changed

speech/system-test/.eslintrc.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
---
2-
env:
3-
mocha: true
42
rules:
53
node/no-unpublished-require: off
64
node/no-unsupported-features: off

speech/system-test/MicrophoneStream.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
const path = require('path');
1818
const {assert} = require('chai');
19+
const {describe, it} = require('mocha');
1920
const cp = require('child_process');
2021

2122
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

speech/system-test/betaFeatures.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
const path = require('path');
1818
const {assert} = require('chai');
19+
const {describe, it} = require('mocha');
1920
const cp = require('child_process');
2021

2122
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

speech/system-test/quickstart.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
const path = require('path');
2020
const {assert} = require('chai');
21+
const {describe, it} = require('mocha');
2122
const cp = require('child_process');
2223

2324
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

speech/system-test/recognize.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
const path = require('path');
1818
const {Storage} = require('@google-cloud/storage');
1919
const {assert} = require('chai');
20+
const {describe, it, before, after} = require('mocha');
2021
const uuid = require('uuid');
2122
const cp = require('child_process');
2223

speech/system-test/recognize.v1p1beta1.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
const path = require('path');
1818
const {assert} = require('chai');
19+
const {describe, it} = require('mocha');
1920
const cp = require('child_process');
2021

2122
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

0 commit comments

Comments
 (0)