Skip to content

Commit

Permalink
Fix failing test due to error message format change
Browse files Browse the repository at this point in the history
  • Loading branch information
SyedWasiHaider committed Jan 20, 2023
1 parent 86e3ff8 commit 7a8a64c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 7a8a64c

Please sign in to comment.