Skip to content

Commit

Permalink
refactor: use explicit mocha imports (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and bcoe committed Dec 30, 2019
1 parent 8b60b41 commit cd839c8
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 6 deletions.
4 changes: 0 additions & 4 deletions packages/google-cloud-speech/system-test/.eslintrc.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
'use strict';

const assert = require('assert');
const {describe, it} = require('mocha');
const path = require('path');
const speech = require(path.join(process.cwd(), 'build', 'src'));
const fs = require('fs');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
'use strict';

const assert = require('assert');
const {describe, it} = require('mocha');
const path = require('path');
const speech = require(path.join(process.cwd(), 'build', 'src'));
const fs = require('fs');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
'use strict';

const assert = require('assert');
const {describe, it} = require('mocha');
const path = require('path');
const speech = require(path.join(process.cwd(), 'build', 'src'));
const fs = require('fs');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

import * as assert from 'assert';
import {describe, it} from 'mocha';
import * as speech from '../src';
import * as fs from 'fs';
import * as path from 'path';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

import * as assert from 'assert';
import {describe, it} from 'mocha';
import * as speech from '../src';
import * as fs from 'fs';
import * as path from 'path';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

import * as assert from 'assert';
import {describe, it} from 'mocha';
import * as speech from '../src';
import * as fs from 'fs';
import * as path from 'path';
Expand Down
2 changes: 0 additions & 2 deletions packages/google-cloud-speech/test/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---
env:
mocha: true
rules:
node/no-unpublished-require: off
1 change: 1 addition & 0 deletions packages/google-cloud-speech/test/gapic-speech-v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

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

import {PassThrough} from 'stream';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

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

import {PassThrough} from 'stream';
Expand Down
1 change: 1 addition & 0 deletions packages/google-cloud-speech/test/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
'use strict';

import * as assert from 'assert';
import {describe, it} from 'mocha';
import * as sinon from 'sinon';
import * as stream from 'stream';

Expand Down

0 comments on commit cd839c8

Please sign in to comment.