Skip to content

Commit 63f14d9

Browse files
JustinBeckwithbcoe
authored andcommitted
refactor: use explicit mocha imports (#319)
1 parent a2bab5c commit 63f14d9

File tree

6 files changed

+6
-4
lines changed

6 files changed

+6
-4
lines changed

texttospeech/test/.eslintrc.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
---
2-
env:
3-
mocha: true
4-

texttospeech/test/audioProfile.test.js

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

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

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

texttospeech/test/listVoices.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
'use strict';
1616

1717
const {assert} = require('chai');
18+
const {describe, it} = require('mocha');
1819
const cp = require('child_process');
1920

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

texttospeech/test/quickstart.test.js

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

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

2122
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
@@ -31,7 +32,7 @@ describe('quickstart', () => {
3132
}
3233
});
3334

34-
it('should synthesize speech to local mp3 file', async () => {
35+
it('should synthesize speech to local mp3 file', () => {
3536
assert.strictEqual(fs.existsSync(outputFile), false);
3637
const stdout = execSync('node quickstart');
3738
assert.match(stdout, /Audio content written to file: output.mp3/);

texttospeech/test/ssmlAddresses.test.js

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

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

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

texttospeech/test/synthesize.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
const fs = require('fs');
1818
const path = require('path');
1919
const {assert} = require('chai');
20+
const {describe, it, afterEach} = require('mocha');
2021
const cp = require('child_process');
2122

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

0 commit comments

Comments
 (0)