Skip to content

Commit 341abbd

Browse files
refactor: use explicit mocha imports (#343)
1 parent 7159608 commit 341abbd

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

monitoring/snippets/test/.eslintrc.yml

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

monitoring/snippets/test/alerts.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
const monitoring = require('@google-cloud/monitoring');
1818
const {assert} = require('chai');
19+
const {describe, it, before, after} = require('mocha');
1920
const cp = require('child_process');
2021
const uuid = require('uuid');
2122
const path = require('path');

monitoring/snippets/test/metrics.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
const monitoring = require('@google-cloud/monitoring');
1818
const {assert} = require('chai');
19+
const {describe, it} = require('mocha');
1920
const cp = require('child_process');
2021
const retry = require('p-retry');
2122

monitoring/snippets/test/quickstart.test.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('chai');
18+
const {describe, it} = require('mocha');
1819
const cp = require('child_process');
1920
const retry = require('p-retry');
2021

monitoring/snippets/test/uptime.test.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('chai');
18+
const {describe, it} = require('mocha');
1819
const cp = require('child_process');
1920

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

0 commit comments

Comments
 (0)