Skip to content

Commit

Permalink
use const
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed May 20, 2022
1 parent 37f69e6 commit a24b1f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/NetworkTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ test('cancelled requests should not be retried', () => {

// GIVEN a mock that will return a "cancelled" request error
global.fetch = jest.fn()
.mockRejectedValue(new DOMException('Aborted', 'AbortError'));
.mockRejectedValue(new DOMException('Aborted', CONST.ERROR.REQUEST_CANCELLED));

return Onyx.set(ONYXKEYS.NETWORK, {isOffline: false})
.then(() => {
Expand Down

0 comments on commit a24b1f2

Please sign in to comment.