Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

test: throw on deprecation #139

Merged
merged 2 commits into from
Aug 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion system-test/compute.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ describe('Compute', function() {
firewall.getMetadata(function(err, metadata) {
assert.ifError(err);
assert.deepStrictEqual(metadata.allowed, expectedMetadata.allowed);
assert.deepStrictEqual(metadata.sourceRanges, expectedMetadata.sourceRanges);
assert.deepStrictEqual(
metadata.sourceRanges,
expectedMetadata.sourceRanges
);
done();
});
});
Expand Down
5 changes: 4 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ describe('Compute', function() {
assert.deepStrictEqual(calledWith.scopes, [
'https://www.googleapis.com/auth/compute',
]);
assert.deepStrictEqual(calledWith.packageJson, require('../package.json'));
assert.deepStrictEqual(
calledWith.packageJson,
require('../package.json')
);
});

it('should streamify the correct methods', function() {
Expand Down
1 change: 1 addition & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
--require intelli-espower-loader
--timeout 10000
--throw-deprecation
18 changes: 12 additions & 6 deletions test/zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -850,9 +850,12 @@ describe('Zone', function() {

it('should add a network interface accessConfig', function(done) {
zone.request = function(reqOpts) {
assert.deepStrictEqual(reqOpts.json.networkInterfaces[0].accessConfigs[0], {
type: 'ONE_TO_ONE_NAT',
});
assert.deepStrictEqual(
reqOpts.json.networkInterfaces[0].accessConfigs[0],
{
type: 'ONE_TO_ONE_NAT',
}
);
done();
};

Expand Down Expand Up @@ -930,9 +933,12 @@ describe('Zone', function() {

it('should add a network interface accessConfig', function(done) {
zone.request = function(reqOpts) {
assert.deepStrictEqual(reqOpts.json.networkInterfaces[0].accessConfigs[0], {
type: 'ONE_TO_ONE_NAT',
});
assert.deepStrictEqual(
reqOpts.json.networkInterfaces[0].accessConfigs[0],
{
type: 'ONE_TO_ONE_NAT',
}
);
done();
};

Expand Down