From f0b88833c2adadfe5b934a69d34dd26cd8e84969 Mon Sep 17 00:00:00 2001 From: "zokutyou2@gmail.com" Date: Tue, 13 Jul 2021 21:54:55 +0900 Subject: [PATCH] add response to fetchMock --- web/src/js/__tests__/components/Command/CommandSpec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/js/__tests__/components/Command/CommandSpec.js b/web/src/js/__tests__/components/Command/CommandSpec.js index 7ff6c413f..fbc75d65e 100644 --- a/web/src/js/__tests__/components/Command/CommandSpec.js +++ b/web/src/js/__tests__/components/Command/CommandSpec.js @@ -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(