Skip to content

Commit

Permalink
refactor: remove chai module
Browse files Browse the repository at this point in the history
  • Loading branch information
gryczj committed Aug 16, 2024
1 parent f30bda7 commit 4b53c4c
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 15 deletions.
1 change: 0 additions & 1 deletion compute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"devDependencies": {
"@google-cloud/storage": "^7.0.0",
"c8": "^10.0.0",
"chai": "^5.0.0",
"mocha": "^10.0.0",
"proxyquire": "^2.0.1",
"uuid": "^10.0.0"
Expand Down
2 changes: 1 addition & 1 deletion compute/test/createInstanceTemplates.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const compute = require('@google-cloud/compute');

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

const {generateTestId, getStaleVMInstances, deleteInstance} = require('./util');

Expand Down
2 changes: 1 addition & 1 deletion compute/test/createStartInstance.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const compute = require('@google-cloud/compute');
const {describe, it} = require('mocha');
const uuid = require('uuid');
const cp = require('child_process');
const {assert} = require('chai');
const assert = require('node:assert/strict');

const {generateTestId, getStaleVMInstances, deleteInstance} = require('./util');

Expand Down
2 changes: 1 addition & 1 deletion compute/test/creatingManagingWindows.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const compute = require('@google-cloud/compute');

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

const {generateTestId, getStaleVMInstances, deleteInstance} = require('./util');

Expand Down
2 changes: 1 addition & 1 deletion compute/test/creatingWindowsOSImage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const compute = require('@google-cloud/compute');

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

const {generateTestId, getStaleVMInstances, deleteInstance} = require('./util');

Expand Down
2 changes: 1 addition & 1 deletion compute/test/customHostnameInstance.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const compute = require('@google-cloud/compute');
const {describe, it} = require('mocha');
const uuid = require('uuid');
const cp = require('child_process');
const {assert} = require('chai');
const assert = require('node:assert/strict');

const instancesClient = new compute.InstancesClient();

Expand Down
2 changes: 1 addition & 1 deletion compute/test/customMachineType.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const compute = require('@google-cloud/compute');

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

const {generateTestId, getStaleVMInstances, deleteInstance} = require('./util');

Expand Down
2 changes: 1 addition & 1 deletion compute/test/disks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const compute = require('@google-cloud/compute');
const {describe, it} = require('mocha');
const uuid = require('uuid');
const cp = require('child_process');
const {assert} = require('chai');
const assert = require('node:assert/strict');

const {generateTestId, getStaleVMInstances, deleteInstance} = require('./util');

Expand Down
2 changes: 1 addition & 1 deletion compute/test/mailjet.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

const proxyquire = require('proxyquire').noPreserveCache();
const {assert} = require('chai');
const assert = require('node:assert/strict');

process.env.MAILJET_API_KEY = 'foo';
process.env.MAILJET_API_SECRET = 'bar';
Expand Down
2 changes: 1 addition & 1 deletion compute/test/preemptible.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const compute = require('@google-cloud/compute');

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

const {generateTestId, getStaleVMInstances, deleteInstance} = require('./util');

Expand Down
2 changes: 1 addition & 1 deletion compute/test/preventAccidentalVMDeletion.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const compute = require('@google-cloud/compute');

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

const {generateTestId, getStaleVMInstances, deleteInstance} = require('./util');

Expand Down
2 changes: 1 addition & 1 deletion compute/test/samples.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const {Storage} = require('@google-cloud/storage');
const {describe, it} = require('mocha');
const uuid = require('uuid');
const cp = require('child_process');
const {assert} = require('chai');
const assert = require('node:assert/strict');

const {generateTestId, getStaleVMInstances, deleteInstance} = require('./util');

Expand Down
2 changes: 1 addition & 1 deletion compute/test/sendgrid.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

const proxyquire = require('proxyquire');
const {assert} = require('chai');
const assert = require('node:assert/strict');

process.env.SENDGRID_API_KEY = 'foo';

Expand Down
2 changes: 1 addition & 1 deletion compute/test/snapshots.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const compute = require('@google-cloud/compute');
const {describe, it} = require('mocha');
const uuid = require('uuid');
const cp = require('child_process');
const {assert} = require('chai');
const assert = require('node:assert/strict');

const {getStaleVMInstances, deleteInstance} = require('./util');

Expand Down
2 changes: 1 addition & 1 deletion compute/test/suspendResume.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const compute = require('@google-cloud/compute');

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

const {generateTestId, getStaleVMInstances, deleteInstance} = require('./util');

Expand Down

0 comments on commit 4b53c4c

Please sign in to comment.