mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-21 22:58:24 +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';
|
||||
|
||||
test('CommandBar Component', async () => {
|
||||
fetchMock.get('./commands.json', {status: 200})
|
||||
fetchMock.get('./commands.json', {status: 200, body: {"commands": "foo"}})
|
||||
|
||||
const {asFragment, store} = render(
|
||||
<CommandBar/>
|
||||
|
Loading…
Reference in New Issue
Block a user