From 7a8a64c519e0a61d4dc1bef8edfa69a62e155d80 Mon Sep 17 00:00:00 2001 From: Wasi Haider Date: Fri, 20 Jan 2023 15:01:46 -0800 Subject: [PATCH] Fix failing test due to error message format change --- packages/destination-subscriptions/src/__tests__/fql.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/destination-subscriptions/src/__tests__/fql.test.ts b/packages/destination-subscriptions/src/__tests__/fql.test.ts index 1ae1c723a08..06f9fcb7ee0 100644 --- a/packages/destination-subscriptions/src/__tests__/fql.test.ts +++ b/packages/destination-subscriptions/src/__tests__/fql.test.ts @@ -5,7 +5,7 @@ const testFql = (fql: string, ast: any): void => { expect(generateFql(ast)).toEqual(fql) } -const expectedTypeError = new Error("Cannot read property 'type' of undefined") +const expectedTypeError = new Error('"error": [TypeError: Cannot read properties of undefined (reading \'type\')]') expectedTypeError.name = 'TypeError' test('should handle invalid payloads', () => {