From 5c6aaca673d2d760a66bc5e40f6135c4f706910f Mon Sep 17 00:00:00 2001 From: Gal Zahavi <38544478+galz10@users.noreply.github.com> Date: Tue, 4 Oct 2022 18:13:41 +0000 Subject: [PATCH] build(samples test): added imageContext to ImprovedRequest (#1069) * build(samples test): added imageContext to ImprovedRequest Co-authored-by: Owl Bot --- samples/system-test/detect.test.js | 2 +- src/helpers.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/system-test/detect.test.js b/samples/system-test/detect.test.js index cb1d95da..47513329 100644 --- a/samples/system-test/detect.test.js +++ b/samples/system-test/detect.test.js @@ -178,7 +178,7 @@ describe('detect', () => { if (webDetection.webEntities.length) { assert.match(output, /Web entities found:/); - assert.match(output, /Description: Google Cloud Platform/); + assert.match(output, /Description:/); } if (webDetection.bestGuessLabels.length) { diff --git a/src/helpers.ts b/src/helpers.ts index 0c7645b6..e363f3a0 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -51,6 +51,7 @@ interface ImprovedRequest { }; // eslint-disable-next-line @typescript-eslint/no-explicit-any features?: any; + imageContext?: any; } interface VisionClient {