-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: remove old fetch-mock/core from module compat tests
- Loading branch information
1 parent
74c26b3
commit 276ecf0
Showing
3 changed files
with
3 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
const { default: fetchMockCore, FetchMock } = require('@fetch-mock/core'); | ||
const { default: fetchMockCore, FetchMock } = require('fetch-mock'); | ||
fetchMockCore.route('http://example.com', 200); | ||
|
||
new FetchMock({}); | ||
|
||
const fetchMock = require('fetch-mock').default; | ||
fetchMock.mock('http://example.com', 200); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import fetchMockCore, { FetchMock } from '@fetch-mock/core'; | ||
import fetchMockCore, { FetchMock } from 'fetch-mock'; | ||
fetchMockCore.route('http://example.com', 200); | ||
|
||
new FetchMock({}); | ||
|
||
import fetchMock from 'fetch-mock'; | ||
fetchMock.mock('http://example.com', 200); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import fetchMockCore, { FetchMock } from '@fetch-mock/core'; | ||
import fetchMockCore, { FetchMock } from 'fetch-mock'; | ||
fetchMockCore.route('http://example.com', 200); | ||
|
||
new FetchMock({}); | ||
|
||
import fetchMock from 'fetch-mock'; | ||
fetchMock.mock('http://example.com', 200); |