Skip to content

Commit 3dc0247

Browse files
JustinBeckwithbcoe
authored andcommitted
refactor: use explicit mocha imports (#416)
1 parent 2daa153 commit 3dc0247

File tree

9 files changed

+5
-13
lines changed

9 files changed

+5
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
---
22
rules:
33
no-console: off
4-
no-warning-comments: off

packages/google-cloud-translate/samples/test/quickstart.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
const path = require('path');
2021

packages/google-cloud-translate/src/v3beta1/.eslintrc.yml

-3
This file was deleted.

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

-4
This file was deleted.

packages/google-cloud-translate/system-test/translate.ts

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616

1717
import * as assert from 'assert';
18+
import {describe, it} from 'mocha';
1819
import {TranslationServiceClient} from '../src';
1920

2021
const http2spy = require('http2spy');

packages/google-cloud-translate/test/.eslintrc.yml

-5
This file was deleted.

packages/google-cloud-translate/test/gapic-translation_service-v3.ts

+1
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 translationserviceModule = require('../src');
2223

2324
const FAKE_STATUS_CODE = 1;

packages/google-cloud-translate/test/gapic-translation_service-v3beta1.ts

+1
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 translationserviceModule = require('../src');
2223

2324
const FAKE_STATUS_CODE = 1;

packages/google-cloud-translate/test/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
} from '@google-cloud/common/build/src/util';
2222
import * as pfy from '@google-cloud/promisify';
2323
import * as assert from 'assert';
24+
import {describe, it} from 'mocha';
2425
import * as extend from 'extend';
2526
import * as proxyquire from 'proxyquire';
2627
import * as r from 'request';

0 commit comments

Comments
 (0)