Skip to content

Commit

Permalink
refactor: use explicit mocha imports (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and bcoe committed Dec 30, 2019
1 parent 61bf9b3 commit a42cbc4
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions packages/google-cloud-dataproc/smoke-test/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---
env:
mocha: true
rules:
no-console: off
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

'use strict';

const {describe, it} = require('mocha');

describe('ClusterControllerSmokeTest', () => {
if (!process.env.GCLOUD_PROJECT) {
throw new Error('Usage: GCLOUD_PROJECT=<project_id> node #{$0}');
Expand Down
2 changes: 0 additions & 2 deletions packages/google-cloud-dataproc/system-test/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---
env:
mocha: true
rules:
no-console: off
3 changes: 0 additions & 3 deletions packages/google-cloud-dataproc/test/.eslintrc.yml

This file was deleted.

1 change: 1 addition & 0 deletions packages/google-cloud-dataproc/test/gapic-v1.js
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 dataprocModule = require('../src');

Expand Down
1 change: 1 addition & 0 deletions packages/google-cloud-dataproc/test/gapic-v1beta2.js
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 dataprocModule = require('../src');

Expand Down

0 comments on commit a42cbc4

Please sign in to comment.