Skip to content

Commit

Permalink
refactor: use explicit mocha imports (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and bcoe committed Dec 30, 2019
1 parent a2bab5c commit 63f14d9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions texttospeech/test/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
---
env:
mocha: true

1 change: 1 addition & 0 deletions texttospeech/test/audioProfile.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

const fs = require('fs');
const {assert} = require('chai');
const {describe, it, after} = require('mocha');
const cp = require('child_process');

const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
Expand Down
1 change: 1 addition & 0 deletions texttospeech/test/listVoices.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
'use strict';

const {assert} = require('chai');
const {describe, it} = require('mocha');
const cp = require('child_process');

const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
Expand Down
3 changes: 2 additions & 1 deletion texttospeech/test/quickstart.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

const fs = require('fs');
const {assert} = require('chai');
const {describe, it, after} = require('mocha');
const cp = require('child_process');

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

it('should synthesize speech to local mp3 file', async () => {
it('should synthesize speech to local mp3 file', () => {
assert.strictEqual(fs.existsSync(outputFile), false);
const stdout = execSync('node quickstart');
assert.match(stdout, /Audio content written to file: output.mp3/);
Expand Down
1 change: 1 addition & 0 deletions texttospeech/test/ssmlAddresses.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

const fs = require('fs');
const {assert} = require('chai');
const {describe, it, before, after} = require('mocha');
const cp = require('child_process');

const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
Expand Down
1 change: 1 addition & 0 deletions texttospeech/test/synthesize.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
const fs = require('fs');
const path = require('path');
const {assert} = require('chai');
const {describe, it, afterEach} = require('mocha');
const cp = require('child_process');

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

0 comments on commit 63f14d9

Please sign in to comment.