From a71693d417e09d49465481e4ad5b47e9dc7520f1 Mon Sep 17 00:00:00 2001 From: Guillermina Muro Date: Tue, 28 May 2019 17:06:40 -0700 Subject: [PATCH] fixed occurrence typo --- container-analysis/snippets/createOccurrence.js | 6 +++--- container-analysis/snippets/test/containerAnalysis.test.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/container-analysis/snippets/createOccurrence.js b/container-analysis/snippets/createOccurrence.js index f4e7cea353..c332d21296 100644 --- a/container-analysis/snippets/createOccurrence.js +++ b/container-analysis/snippets/createOccurrence.js @@ -5,7 +5,7 @@ async function main( noteProjectId = 'your-project-id', // Your GCP Project Id noteId = 'my-note-id', // Id of the note - occurenceProjectId = 'your-project-id', // GCP Project Id of Occurence + occurrenceProjectId = 'your-project-id', // GCP Project Id of Occurrence imageUrl = 'https://gcr.io/my-project/my-image:123' // Image to attach metadata to ) { // [START containeranalysis_create_occurrence] @@ -14,7 +14,7 @@ async function main( */ // const noteProjectId = 'your-project-id', // Your GCP Project Id // const noteId = 'my-note-id', // Id of the note - // const occurenceProjectId = 'your-project-id', // GCP Project Id of Occurence + // const occurrenceProjectId = 'your-project-id', // GCP Project Id of Occurrence // const imageUrl = 'https://gcr.io/my-project/my-image:123' // Image to attach metadata to // Import the library and create a client @@ -22,7 +22,7 @@ async function main( const client = new containerAnalysis.v1beta1.GrafeasV1Beta1Client(); // Construct request - const formattedParent = client.projectPath(occurenceProjectId); + const formattedParent = client.projectPath(occurrenceProjectId); const formattedNote = client.notePath(noteProjectId, noteId); // Creates and returns a new Occurrence associated with an existing Note diff --git a/container-analysis/snippets/test/containerAnalysis.test.js b/container-analysis/snippets/test/containerAnalysis.test.js index 03507f45b9..f9f0857b22 100644 --- a/container-analysis/snippets/test/containerAnalysis.test.js +++ b/container-analysis/snippets/test/containerAnalysis.test.js @@ -88,7 +88,7 @@ describe('Note tests', () => { assert.include(output, `Occurrence name: ${occurrence.name}`); }); - it('should get occurences for note', () => { + it('should get occurrences for note', () => { let output; for (let i = 0; i < retries; i++) { output = execSync(