From eabd409a045a30a2b96d6f8fb8adb4cd9b2e7322 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 30 Dec 2019 10:27:18 -0800 Subject: [PATCH] refactor: use explicit mocha imports (#378) --- packages/google-privacy-dlp/system-test/.eslintrc.yml | 2 -- .../google-privacy-dlp/system-test/dlp_service_smoke_test.js | 2 ++ packages/google-privacy-dlp/test/.eslintrc.yml | 3 --- packages/google-privacy-dlp/test/gapic-v2.js | 1 + 4 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 packages/google-privacy-dlp/test/.eslintrc.yml diff --git a/packages/google-privacy-dlp/system-test/.eslintrc.yml b/packages/google-privacy-dlp/system-test/.eslintrc.yml index 2e6882e46d2..5adab99ca15 100644 --- a/packages/google-privacy-dlp/system-test/.eslintrc.yml +++ b/packages/google-privacy-dlp/system-test/.eslintrc.yml @@ -1,6 +1,4 @@ --- -env: - mocha: true rules: node/no-unpublished-require: off no-console: off diff --git a/packages/google-privacy-dlp/system-test/dlp_service_smoke_test.js b/packages/google-privacy-dlp/system-test/dlp_service_smoke_test.js index cbb7ce83404..5137cb14c24 100644 --- a/packages/google-privacy-dlp/system-test/dlp_service_smoke_test.js +++ b/packages/google-privacy-dlp/system-test/dlp_service_smoke_test.js @@ -14,6 +14,8 @@ 'use strict'; +const {describe, it} = require('mocha'); + describe('DlpServiceSmokeTest', () => { it('successfully makes a call to the service', done => { const dlp = require('../src'); diff --git a/packages/google-privacy-dlp/test/.eslintrc.yml b/packages/google-privacy-dlp/test/.eslintrc.yml deleted file mode 100644 index 6db2a46c535..00000000000 --- a/packages/google-privacy-dlp/test/.eslintrc.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -env: - mocha: true diff --git a/packages/google-privacy-dlp/test/gapic-v2.js b/packages/google-privacy-dlp/test/gapic-v2.js index df6836c3aa7..d8d7e8d1181 100644 --- a/packages/google-privacy-dlp/test/gapic-v2.js +++ b/packages/google-privacy-dlp/test/gapic-v2.js @@ -15,6 +15,7 @@ 'use strict'; const assert = require('assert'); +const {describe, it} = require('mocha'); const dlpModule = require('../src');