Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit fedc60e

Browse files
JustinBeckwithBenjamin E. Coe
authored andcommitted
refactor: use explicit mocha imports (#807)
1 parent c295588 commit fedc60e

22 files changed

Lines changed: 22 additions & 0 deletions

system-test/test-controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import * as assert from 'assert';
16+
import {describe, it} from 'mocha';
1617

1718
assert.ok(
1819
process.env.GCLOUD_PROJECT,

system-test/test-e2e.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import * as assert from 'assert';
16+
import {describe, it} from 'mocha';
1617
import * as cp from 'child_process';
1718
import * as util from 'util';
1819
import * as uuid from 'uuid';

test/misc/bench.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
const v8debugapi = require('../src/v8debugapi.js');
1616
const config = require('../config.js').default;
1717
import * as assert from 'assert';
18+
import {describe, it} from 'mocha';
1819
const pretty = require('pretty-hrtime');
1920
// const util = require('util');
2021
const fib = require('./bench-code.js');

test/misc/test-leak.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
const v8debugapi = require('../src/v8debugapi.js');
44
const config = require('../config.js').default;
55
import * as assert from 'assert';
6+
import {describe, it} from 'mocha';
67
import * as util from 'util';
78

89
// tslint:disable:variable-name

test/test-circular.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import * as assert from 'assert';
16+
import {describe, it} from 'mocha';
1617

1718
import {defaultConfig} from '../src/agent/config';
1819
import {Debuglet} from '../src/agent/debuglet';

test/test-controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import * as assert from 'assert';
16+
import {describe, it} from 'mocha';
1617
import * as nock from 'nock';
1718

1819
import {Debug} from '../src/client/stackdriver/debug';

test/test-debuggee.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import * as assert from 'assert';
16+
import {describe, it} from 'mocha';
1617
import {Debuggee} from '../src/debuggee';
1718

1819
const agentVersion = `SomeName/client/SomeVersion`;

test/test-debuglet.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import * as assert from 'assert';
16+
import {describe, it} from 'mocha';
1617
import * as fs from 'fs';
1718
import * as gcpMetadata from 'gcp-metadata';
1819
import * as path from 'path';

test/test-duplicate-expressions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const breakpointInFoo: stackdriver.Breakpoint = {
2222
} as stackdriver.Breakpoint;
2323

2424
import * as assert from 'assert';
25+
import {describe, it} from 'mocha';
2526
import * as extend from 'extend';
2627
import * as debugapi from '../src/agent/v8/debugapi';
2728
import {defaultConfig} from '../src/agent/config';

test/test-duplicate-nested-expressions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import * as assert from 'assert';
16+
import {describe, it} from 'mocha';
1617
import * as extend from 'extend';
1718

1819
import {defaultConfig} from '../src/agent/config';

0 commit comments

Comments
 (0)