Skip to content

Commit

Permalink
refactor: use explicit mocha imports (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and bcoe committed Dec 30, 2019
1 parent 2daa153 commit 3dc0247
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 13 deletions.
1 change: 0 additions & 1 deletion packages/google-cloud-translate/samples/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
rules:
no-console: off
no-warning-comments: off
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 path = require('path');

Expand Down
3 changes: 0 additions & 3 deletions packages/google-cloud-translate/src/v3beta1/.eslintrc.yml

This file was deleted.

4 changes: 0 additions & 4 deletions packages/google-cloud-translate/system-test/.eslintrc.yml

This file was deleted.

1 change: 1 addition & 0 deletions packages/google-cloud-translate/system-test/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import * as assert from 'assert';
import {describe, it} from 'mocha';
import {TranslationServiceClient} from '../src';

const http2spy = require('http2spy');
Expand Down
5 changes: 0 additions & 5 deletions packages/google-cloud-translate/test/.eslintrc.yml

This file was deleted.

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

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

const FAKE_STATUS_CODE = 1;
Expand Down
1 change: 1 addition & 0 deletions packages/google-cloud-translate/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
} from '@google-cloud/common/build/src/util';
import * as pfy from '@google-cloud/promisify';
import * as assert from 'assert';
import {describe, it} from 'mocha';
import * as extend from 'extend';
import * as proxyquire from 'proxyquire';
import * as r from 'request';
Expand Down

0 comments on commit 3dc0247

Please sign in to comment.