From 2fe77d5c94877d7cf0a4c867bfd76bd0b09c96ff Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Thu, 11 Feb 2021 18:50:03 -0800 Subject: [PATCH] test: update context stub --- packages/amplify-util-mock/src/__tests__/func/index.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/amplify-util-mock/src/__tests__/func/index.test.ts b/packages/amplify-util-mock/src/__tests__/func/index.test.ts index bee39307803..2c2cd20e84f 100644 --- a/packages/amplify-util-mock/src/__tests__/func/index.test.ts +++ b/packages/amplify-util-mock/src/__tests__/func/index.test.ts @@ -44,13 +44,14 @@ describe('function start', () => { success: jest.fn(), info: jest.fn(), error: jest.fn(), + blue: jest.fn(), }, }; jest.setTimeout(1000 * 20); // NOTE: A warning from jest saying that async operations weren't stopped in the test is expected here - // because the mock function is designed to keep running after the timeout to ense that the timeout works + // because the mock function is designed to keep running after the timeout to ensure that the timeout works it('times out function execution at the default time', async () => { await start(context_stub); expect(context_stub.print.error.mock.calls[0][0]).toMatchInlineSnapshot(`"funcName failed with the following error:"`);