Skip to content

Commit ab1b706

Browse files
sofislAce Nassri
authored and
Ace Nassri
committed
build!: update to latest version of gts and typescript (#433)
1 parent d746c18 commit ab1b706

File tree

4 files changed

+21
-20
lines changed

4 files changed

+21
-20
lines changed

compute/deleteVM.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2017, Google, Inc.
1+
// Copyright 2020, Google, Inc.
22
// Licensed under the Apache License, Version 2.0 (the "License");
33
// you may not use this file except in compliance with the License.
44
// You may obtain a copy of the License at
@@ -31,7 +31,7 @@ async function main(
3131
const vm = zone.vm(name);
3232
const [operation] = await vm.delete();
3333
await operation.promise();
34-
console.log(`VM deleted!`);
34+
console.log('VM deleted!');
3535
}
3636
deleteVM();
3737
// [END gce_delete_vm]

compute/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"author": "Google Inc.",
66
"repository": "googleapis/nodejs-compute",
77
"files": [
8-
"*.js"
8+
"*.js",
9+
"!test/"
910
],
1011
"engines": {
1112
"node": ">=8"

compute/test/mailjet.test.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -14,41 +14,41 @@
1414

1515
'use strict';
1616

17-
const proxyquire = require(`proxyquire`).noPreserveCache();
17+
const proxyquire = require('proxyquire').noPreserveCache();
1818
const assert = require('assert');
1919

20-
process.env.MAILJET_API_KEY = `foo`;
21-
process.env.MAILJET_API_SECRET = `bar`;
20+
process.env.MAILJET_API_KEY = 'foo';
21+
process.env.MAILJET_API_SECRET = 'bar';
2222

2323
describe('mailjet', () => {
2424
it('should send an email', () => {
25-
proxyquire(`../mailjet`, {
25+
proxyquire('../mailjet', {
2626
nodemailer: {
2727
createTransport: arg => {
28-
assert.strictEqual(arg, `test`);
28+
assert.strictEqual(arg, 'test');
2929
return {
3030
sendMail: payload => {
3131
assert.deepStrictEqual(payload, {
32-
from: `ANOTHER_EMAIL@ANOTHER_EXAMPLE.COM`,
33-
34-
subject: `test email from Node.js on Google Cloud Platform`,
35-
text: `Hello!\n\nThis a test email from Node.js.`,
32+
from: 'ANOTHER_EMAIL@ANOTHER_EXAMPLE.COM',
33+
34+
subject: 'test email from Node.js on Google Cloud Platform',
35+
text: 'Hello!\n\nThis a test email from Node.js.',
3636
});
37-
return `done`;
37+
return 'done';
3838
},
3939
};
4040
},
4141
},
4242
'nodemailer-smtp-transport': options => {
4343
assert.deepStrictEqual(options, {
44-
host: `in.mailjet.com`,
44+
host: 'in.mailjet.com',
4545
port: 2525,
4646
auth: {
47-
user: `foo`,
48-
pass: `bar`,
47+
user: 'foo',
48+
pass: 'bar',
4949
},
5050
});
51-
return `test`;
51+
return 'test';
5252
},
5353
});
5454
});

compute/test/sendgrid.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
const proxyquire = require('proxyquire');
1818
const {assert} = require('chai');
1919

20-
process.env.SENDGRID_API_KEY = `foo`;
20+
process.env.SENDGRID_API_KEY = 'foo';
2121

2222
describe('sendgrid', () => {
2323
it('should send an email', () => {
24-
proxyquire(`../sendgrid`, {
24+
proxyquire('../sendgrid', {
2525
'@sendgrid/mail': {
2626
setApiKey: key => {
27-
assert.strictEqual(key, `foo`);
27+
assert.strictEqual(key, 'foo');
2828
},
2929
send: msg => {
3030
assert.deepStrictEqual(msg, {

0 commit comments

Comments
 (0)