|
17 | 17 | const {assert} = require('chai');
|
18 | 18 | const {describe, it, before, after, afterEach, beforeEach} = require('mocha');
|
19 | 19 | const cp = require('child_process');
|
20 |
| -const uuid = require(`uuid`); |
| 20 | +const uuid = require('uuid'); |
21 | 21 |
|
22 | 22 | const {ContainerAnalysisClient} = require('@google-cloud/containeranalysis');
|
23 | 23 | const client = new ContainerAnalysisClient();
|
@@ -81,7 +81,7 @@ describe('Note tests', () => {
|
81 | 81 | const output = execSync(
|
82 | 82 | `node createOccurrence.js "${projectId}" "${noteId}" "${projectId}" "${resourceUrl}"`
|
83 | 83 | );
|
84 |
| - assert.include(output, `Occurrence created`); |
| 84 | + assert.include(output, 'Occurrence created'); |
85 | 85 | });
|
86 | 86 |
|
87 | 87 | it('should get occurrence', async () => {
|
@@ -233,7 +233,7 @@ describe('Note tests', () => {
|
233 | 233 | const output = execSync(
|
234 | 234 | `node deleteOccurrence.js "${projectId}" "${occurrenceId}"`
|
235 | 235 | );
|
236 |
| - assert.include(output, `Occurrence deleted:`); |
| 236 | + assert.include(output, 'Occurrence deleted:'); |
237 | 237 | });
|
238 | 238 | it('should delete note', () => {
|
239 | 239 | const output = execSync(`node deleteNote.js "${projectId}" "${noteId}" `);
|
@@ -292,7 +292,7 @@ describe('polling', () => {
|
292 | 292 | const output = execSync(
|
293 | 293 | `node pollDiscoveryOccurrenceFinished.js "${projectId}" "${resourceUrl}" "${timeoutSeconds}"`
|
294 | 294 | );
|
295 |
| - assert.include(output, `Found discovery occurrence`); |
| 295 | + assert.include(output, 'Found discovery occurrence'); |
296 | 296 | });
|
297 | 297 | });
|
298 | 298 |
|
@@ -377,7 +377,7 @@ describe('pubsub', () => {
|
377 | 377 | `node occurrencePubSub.js "${projectId}" "${subscriptionId}" "${timeoutSeconds}"`
|
378 | 378 | );
|
379 | 379 |
|
380 |
| - assert.include(empty, `Polled 0 occurrences`); |
| 380 | + assert.include(empty, 'Polled 0 occurrences'); |
381 | 381 | // create test occurrences
|
382 | 382 | for (let i = 0; i < expectedNum; i++) {
|
383 | 383 | const [
|
|
0 commit comments