From f116c082e6fd2d7a71d65dc4b66093e40c61822b Mon Sep 17 00:00:00 2001 From: Superblocks Admin Date: Tue, 15 Oct 2024 18:39:40 +0000 Subject: [PATCH] syncing up to c1f9abe33634271e78f2a62fb1c0bbf980f5e4e7 Co-authored-by: Joey Greco <57115019+joeyagreco@users.noreply.github.com> --- .../packages/plugins/superblocks-ocr/src/e2e.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workers/javascript/packages/plugins/superblocks-ocr/src/e2e.test.ts b/workers/javascript/packages/plugins/superblocks-ocr/src/e2e.test.ts index 49137ef0..5f7a1998 100644 --- a/workers/javascript/packages/plugins/superblocks-ocr/src/e2e.test.ts +++ b/workers/javascript/packages/plugins/superblocks-ocr/src/e2e.test.ts @@ -15,7 +15,7 @@ import SuperblocksOcrPlugin from '.'; // RUN: `npm run env:secrets:fetch:plugins` to fetch the latest plugin credentials dotenv.config({ path: path.resolve(process.cwd(), '.env') }); -const VALID_IMAGE_URL = 'https://cdn.graciousquotes.com/wp-content/uploads/2020/05/Aspire-to-inspire-before-we-expire..jpg'; +const VALID_IMAGE_URL = 'https://superblocks.s3.us-west-2.amazonaws.com/img/integrations/test-resources/hilarious-joke.jpg'; const MICROSOFT_COMPUTER_VISION_API_KEY = process.env.MICROSOFT_COMPUTER_VISION_API_KEY; const MICROSOFT_COMPUTER_VISION_BASE_URL = process.env.MICROSOFT_COMPUTER_VISION_BASE_URL; @@ -84,7 +84,7 @@ describe('execute', () => { newProps.actionConfiguration.action = SUPERBLOCKS_OCR_ACTION.FROM_URL; newProps.actionConfiguration.fileUrl = VALID_IMAGE_URL; const resp = await plugin.execute(newProps); - expect(resp.output).toEqual('Aspire to inspire before\nwe expire.\nGRACIOUSQUOTES.COM'); + expect(resp.output).toEqual('What do you call a\nfly with no wings?\nA walk.\nRD'); }, TEST_TIMEOUT_MS );