Skip to content

Commit c93d0b9

Browse files
JustinBeckwithbcoe
authored andcommitted
refactor: use explicit mocha imports (#187)
1 parent 898366c commit c93d0b9

File tree

7 files changed

+28
-14
lines changed

7 files changed

+28
-14
lines changed
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

packages/google-cloud-securitycenter/samples/package.json

+4
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
},

packages/google-cloud-securitycenter/system-test/.eslintrc.yml

-6
This file was deleted.

packages/google-cloud-securitycenter/system-test/no-test.js

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright 2019 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
'use strict';
16+
17+
const {describe, it} = require('mocha');
18+
19+
describe('system tests', () => {
20+
it('should have tests', done => {
21+
done();
22+
});
23+
});

packages/google-cloud-securitycenter/test/.eslintrc.yml

-5
This file was deleted.

packages/google-cloud-securitycenter/test/gapic-v1.js

+1
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 securityCenterModule = require('../src');
2021

0 commit comments

Comments
 (0)