mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
add response to fetchMock
This commit is contained in:
parent
6670dc0666
commit
f0b88833c2
@ -4,7 +4,7 @@ import { render } from "../../test-utils"
|
|||||||
import fetchMock from 'fetch-mock';
|
import fetchMock from 'fetch-mock';
|
||||||
|
|
||||||
test('CommandBar Component', async () => {
|
test('CommandBar Component', async () => {
|
||||||
fetchMock.get('./commands.json', {status: 200})
|
fetchMock.get('./commands.json', {status: 200, body: {"commands": "foo"}})
|
||||||
|
|
||||||
const {asFragment, store} = render(
|
const {asFragment, store} = render(
|
||||||
<CommandBar/>
|
<CommandBar/>
|
||||||
|
Loading…
Reference in New Issue
Block a user