Skip to content

Commit

Permalink
refactor: use explicit mocha imports (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and ahrarmonsur committed Nov 17, 2022
1 parent ffcaec1 commit f9252da
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions video-intelligence/.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 @@ -16,6 +16,7 @@

const cp = require('child_process');
const {assert} = require('chai');
const {describe, it} = require('mocha');
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

const cmd = `node analyze-streaming-annotation-to-storage.js`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

const cp = require('child_process');
const {assert} = require('chai');
const {describe, it} = require('mocha');

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

const cp = require('child_process');
const {assert} = require('chai');
const {describe, it} = require('mocha');

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

const cp = require('child_process');
const {assert} = require('chai');
const {describe, it} = require('mocha');

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

const cp = require('child_process');
const {assert} = require('chai');
const {describe, it} = require('mocha');
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

const cmd = `node analyze-streaming-safe-search.js`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

const cp = require('child_process');
const {assert} = require('chai');
const {describe, it} = require('mocha');

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

Expand Down
1 change: 1 addition & 0 deletions video-intelligence/system-test/analyze.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
'use strict';

const {assert} = require('chai');
const {describe, it} = require('mocha');
const cp = require('child_process');

const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
Expand Down
1 change: 1 addition & 0 deletions video-intelligence/system-test/analyze.v1p2beta1.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
'use strict';

const {assert} = require('chai');
const {describe, it} = require('mocha');
const cp = require('child_process');

const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
Expand Down
1 change: 1 addition & 0 deletions video-intelligence/system-test/quickstart.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

const path = require('path');
const {assert} = require('chai');
const {describe, it} = require('mocha');
const cp = require('child_process');

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

0 comments on commit f9252da

Please sign in to comment.