Skip to content

Commit cd839c8

Browse files
JustinBeckwithbcoe
authored andcommitted
refactor: use explicit mocha imports (#496)
1 parent 8b60b41 commit cd839c8

11 files changed

+9
-6
lines changed

packages/google-cloud-speech/system-test/.eslintrc.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/google-cloud-speech/system-test/speech_system_test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
'use strict';
1616

1717
const assert = require('assert');
18+
const {describe, it} = require('mocha');
1819
const path = require('path');
1920
const speech = require(path.join(process.cwd(), 'build', 'src'));
2021
const fs = require('fs');

packages/google-cloud-speech/system-test/speech_system_test_v1.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
'use strict';
1616

1717
const assert = require('assert');
18+
const {describe, it} = require('mocha');
1819
const path = require('path');
1920
const speech = require(path.join(process.cwd(), 'build', 'src'));
2021
const fs = require('fs');

packages/google-cloud-speech/system-test/speech_system_test_v1p1beta1.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
'use strict';
1616

1717
const assert = require('assert');
18+
const {describe, it} = require('mocha');
1819
const path = require('path');
1920
const speech = require(path.join(process.cwd(), 'build', 'src'));
2021
const fs = require('fs');

packages/google-cloud-speech/system-test/speech_typescript_system_test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import * as assert from 'assert';
16+
import {describe, it} from 'mocha';
1617
import * as speech from '../src';
1718
import * as fs from 'fs';
1819
import * as path from 'path';

packages/google-cloud-speech/system-test/speech_typescript_system_test_v1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import * as assert from 'assert';
16+
import {describe, it} from 'mocha';
1617
import * as speech from '../src';
1718
import * as fs from 'fs';
1819
import * as path from 'path';

packages/google-cloud-speech/system-test/speech_typescript_system_test_v1p1beta1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import * as assert from 'assert';
16+
import {describe, it} from 'mocha';
1617
import * as speech from '../src';
1718
import * as fs from 'fs';
1819
import * as path from 'path';
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
---
2-
env:
3-
mocha: true
42
rules:
53
node/no-unpublished-require: off

packages/google-cloud-speech/test/gapic-speech-v1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import * as protosTypes from '../protos/protos';
2020
import * as assert from 'assert';
21+
import {describe, it} from 'mocha';
2122
const speechModule = require('../src');
2223

2324
import {PassThrough} from 'stream';

packages/google-cloud-speech/test/gapic-speech-v1p1beta1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import * as protosTypes from '../protos/protos';
2020
import * as assert from 'assert';
21+
import {describe, it} from 'mocha';
2122
const speechModule = require('../src');
2223

2324
import {PassThrough} from 'stream';

packages/google-cloud-speech/test/helpers.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
'use strict';
1818

1919
import * as assert from 'assert';
20+
import {describe, it} from 'mocha';
2021
import * as sinon from 'sinon';
2122
import * as stream from 'stream';
2223

0 commit comments

Comments
 (0)