diff --git a/compute/deleteVM.js b/compute/deleteVM.js index 41d47bdcd2..f53b96d060 100644 --- a/compute/deleteVM.js +++ b/compute/deleteVM.js @@ -1,4 +1,4 @@ -// Copyright 2017, Google, Inc. +// Copyright 2020, Google, Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at @@ -31,7 +31,7 @@ async function main( const vm = zone.vm(name); const [operation] = await vm.delete(); await operation.promise(); - console.log(`VM deleted!`); + console.log('VM deleted!'); } deleteVM(); // [END gce_delete_vm] diff --git a/compute/package.json b/compute/package.json index 1106fcf2bb..cc148d4c82 100644 --- a/compute/package.json +++ b/compute/package.json @@ -5,7 +5,8 @@ "author": "Google Inc.", "repository": "googleapis/nodejs-compute", "files": [ - "*.js" + "*.js", + "!test/" ], "engines": { "node": ">=8" diff --git a/compute/test/mailjet.test.js b/compute/test/mailjet.test.js index 2fd8ae8b72..6da3c8f0fc 100644 --- a/compute/test/mailjet.test.js +++ b/compute/test/mailjet.test.js @@ -14,41 +14,41 @@ 'use strict'; -const proxyquire = require(`proxyquire`).noPreserveCache(); +const proxyquire = require('proxyquire').noPreserveCache(); const assert = require('assert'); -process.env.MAILJET_API_KEY = `foo`; -process.env.MAILJET_API_SECRET = `bar`; +process.env.MAILJET_API_KEY = 'foo'; +process.env.MAILJET_API_SECRET = 'bar'; describe('mailjet', () => { it('should send an email', () => { - proxyquire(`../mailjet`, { + proxyquire('../mailjet', { nodemailer: { createTransport: arg => { - assert.strictEqual(arg, `test`); + assert.strictEqual(arg, 'test'); return { sendMail: payload => { assert.deepStrictEqual(payload, { - from: `ANOTHER_EMAIL@ANOTHER_EXAMPLE.COM`, - to: `EMAIL@EXAMPLE.COM`, - subject: `test email from Node.js on Google Cloud Platform`, - text: `Hello!\n\nThis a test email from Node.js.`, + from: 'ANOTHER_EMAIL@ANOTHER_EXAMPLE.COM', + to: 'EMAIL@EXAMPLE.COM', + subject: 'test email from Node.js on Google Cloud Platform', + text: 'Hello!\n\nThis a test email from Node.js.', }); - return `done`; + return 'done'; }, }; }, }, 'nodemailer-smtp-transport': options => { assert.deepStrictEqual(options, { - host: `in.mailjet.com`, + host: 'in.mailjet.com', port: 2525, auth: { - user: `foo`, - pass: `bar`, + user: 'foo', + pass: 'bar', }, }); - return `test`; + return 'test'; }, }); }); diff --git a/compute/test/sendgrid.test.js b/compute/test/sendgrid.test.js index a9db82b2a6..1962c51332 100644 --- a/compute/test/sendgrid.test.js +++ b/compute/test/sendgrid.test.js @@ -17,14 +17,14 @@ const proxyquire = require('proxyquire'); const {assert} = require('chai'); -process.env.SENDGRID_API_KEY = `foo`; +process.env.SENDGRID_API_KEY = 'foo'; describe('sendgrid', () => { it('should send an email', () => { - proxyquire(`../sendgrid`, { + proxyquire('../sendgrid', { '@sendgrid/mail': { setApiKey: key => { - assert.strictEqual(key, `foo`); + assert.strictEqual(key, 'foo'); }, send: msg => { assert.deepStrictEqual(msg, {