Skip to content

Commit 2d9bd8c

Browse files
JustinBeckwithsofisl
authored andcommitted
refactor: use explicit mocha imports (#284)
1 parent 5bb72a2 commit 2d9bd8c

File tree

7 files changed

+7
-10
lines changed

7 files changed

+7
-10
lines changed

packages/google-cloud-bigquery-datatransfer/samples/quickstart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2017, Google LLC All rights reserved.
1+
// Copyright 2017 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-bigquery-datatransfer/samples/test/quickstart.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2017, Google LLC All rights reserved.
1+
// Copyright 2017 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -15,12 +15,13 @@
1515
'use strict';
1616

1717
const {assert} = require('chai');
18+
const {describe, it} = require('mocha');
1819
const cp = require('child_process');
1920

2021
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2122

2223
describe('quickstart', () => {
23-
it('should return a list of resources', async () => {
24+
it('should return a list of resources', () => {
2425
const stdout = execSync('node quickstart');
2526
assert.match(stdout, /^Data sources/);
2627
});
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
---
2-
env:
3-
mocha: true
42
rules:
53
no-console: off

packages/google-cloud-bigquery-datatransfer/smoke-test/data_transfer_service_smoke_test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
'use strict';
1616

17+
const {describe, it} = require('mocha');
18+
1719
describe('DataTransferServiceSmokeTest', () => {
1820
if (!process.env.GCLOUD_PROJECT) {
1921
throw new Error('Usage: GCLOUD_PROJECT=<project_id> node #{$0}');
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
---
2-
env:
3-
mocha: true
42
rules:
53
no-console: off

packages/google-cloud-bigquery-datatransfer/test/.eslintrc.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/google-cloud-bigquery-datatransfer/test/gapic-v1.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
'use strict';
1616

1717
const assert = require('assert');
18+
const {describe, it} = require('mocha');
1819

1920
const bigqueryDataTransferModule = require('../src');
2021

0 commit comments

Comments
 (0)