Skip to content

Commit d248754

Browse files
JustinBeckwithBenjamin E. Coe
authored andcommitted
refactor: use explicit mocha imports (#187)
1 parent 020bd4c commit d248754

File tree

10 files changed

+12
-8
lines changed

10 files changed

+12
-8
lines changed

.eslintrc.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
---
22
rules:
33
no-console: off
4-
node/no-missing-require: off
5-
no-warning-comments: off

security-center/snippets/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"name": "nodejs-security-center-samples",
33
"private": true,
4+
"files": [
5+
"**/*.js",
6+
"!system-test/"
7+
],
48
"engines": {
59
"node": ">=8"
610
},

security-center/snippets/system-test/.eslintrc.yml

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

security-center/snippets/system-test/v1/assetSecurityMarks.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019, Google LLC
1+
// Copyright 2019 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.
@@ -16,6 +16,7 @@
1616

1717
const {SecurityCenterClient} = require('@google-cloud/security-center');
1818
const {assert} = require('chai');
19+
const {describe, it, before} = require('mocha');
1920
const {execSync} = require('child_process');
2021
const exec = cmd => execSync(cmd, {encoding: 'utf8'});
2122

security-center/snippets/system-test/v1/findings.test.js

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

1717
const {SecurityCenterClient} = require('@google-cloud/security-center');
1818
const {assert} = require('chai');
19+
const {describe, it, before} = require('mocha');
1920
const {execSync} = require('child_process');
2021
const exec = cmd => execSync(cmd, {encoding: 'utf8'});
2122

security-center/snippets/system-test/v1/listAllAssets.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 {execSync} = require('child_process');
1920
const exec = cmd => execSync(cmd, {encoding: 'utf8'});
2021

security-center/snippets/system-test/v1/listAssetsAndChanges.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 {execSync} = require('child_process');
1920
const exec = cmd => execSync(cmd, {encoding: 'utf8'});
2021

security-center/snippets/system-test/v1/listAssetsAtTime.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 {execSync} = require('child_process');
1920
const exec = cmd => execSync(cmd, {encoding: 'utf8'});
2021

security-center/snippets/system-test/v1/listFilteredAssets.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 {execSync} = require('child_process');
1920
const exec = cmd => execSync(cmd, {encoding: 'utf8'});
2021

security-center/snippets/system-test/v1/orgSettings.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 {execSync} = require('child_process');
1920
const exec = cmd => execSync(cmd, {encoding: 'utf8'});
2021

0 commit comments

Comments
 (0)