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

Commit

Permalink
test: throw on deprecation (#139)
Browse files Browse the repository at this point in the history
* remove that whitespace

* fix the prettier stuff
  • Loading branch information
JustinBeckwith authored and stephenplusplus committed Aug 2, 2018
1 parent cc378d8 commit c647b4e
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 20 deletions.
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

0 comments on commit c647b4e

Please sign in to comment.