Skip to content

Commit cd06890

Browse files
committed
Change toThrowGqlError message failure to support asymmetric matchers
Missed in #3183 This previous code avoided quoting the message string. I was trying to reduce syntax to sort through in error message. Compromising to include quotes here to be consistent & support the matchers. ``` Message: StringMatching: /not found/ "Server Error" ``` ``` Message: "Not Found" "Server Error" ```
1 parent c6b53c5 commit cd06890

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/utility/expect-gql-error.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ expect.extend({
6060
!messagePassed
6161
? stripIndent`
6262
Message:
63-
${this.utils.EXPECTED_COLOR(expectedObj.message)}
64-
${this.utils.RECEIVED_COLOR(actualObj.message)}
63+
${this.utils.printExpected(expectedObj.message)}
64+
${this.utils.printReceived(actualObj.message)}
6565
`.replace(/\n/g, '\n ')
6666
: ''
6767
}

0 commit comments

Comments
 (0)