-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,14 @@ jest.mock('../../commerce-api/auth', () => { | |
} | ||
}) | ||
|
||
jest.mock('../../utils/url', () => { | ||
const original = jest.requireActual('../../utils/url') | ||
return { | ||
...original, | ||
removeSiteLocaleFromPath: jest.fn(() => original.removeSiteLocaleFromPath) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
sandragolden
Author
Contributor
|
||
} | ||
}) | ||
|
||
const mockOrder = keysToCamel({ | ||
basket_id: 'testorderbasket', | ||
...ocapiOrderResponse | ||
|
Very interesting way to mock an original function. How does it differ from the line below? 🤔