From a0bb64fdd3befa4b7bc7fd13c5a6f360eee26daa Mon Sep 17 00:00:00 2001 From: Matthew Shao Date: Mon, 29 May 2017 09:15:29 +0800 Subject: [web] Minor fixes. --- web/src/js/__tests__/components/Header/FilterDocsSpec.js | 4 ++-- web/src/js/__tests__/components/Header/FilterInputSpec.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/js/__tests__/components/Header/FilterDocsSpec.js b/web/src/js/__tests__/components/Header/FilterDocsSpec.js index a8cc5e97..321f9483 100644 --- a/web/src/js/__tests__/components/Header/FilterDocsSpec.js +++ b/web/src/js/__tests__/components/Header/FilterDocsSpec.js @@ -4,10 +4,10 @@ import FilterDocs from '../../../components/Header/FilterDocs' describe('FilterDocs Component', () => { let mockResponse = { json: - jest.fn(() => { return { commands: [['cmd1', 'foo'], ['cmd2', 'bar']]}}) + () => { return { commands: [['cmd1', 'foo'], ['cmd2', 'bar']]}} }, promise = Promise.resolve(mockResponse) - global.fetch = jest.fn(r => { return promise }) + global.fetch = r => { return promise } let filterDocs = renderer.create(), tree = filterDocs.toJSON() diff --git a/web/src/js/__tests__/components/Header/FilterInputSpec.js b/web/src/js/__tests__/components/Header/FilterInputSpec.js index 6b19770e..86193456 100644 --- a/web/src/js/__tests__/components/Header/FilterInputSpec.js +++ b/web/src/js/__tests__/components/Header/FilterInputSpec.js @@ -6,7 +6,7 @@ import TestUtil from 'react-dom/test-utils' import ReactDOM from 'react-dom' import { Key } from '../../../utils' -describe('FilterDocs Component', () => { +describe('FilterInput Component', () => { it('should render correctly', () => { let filterInput = renderer.create(), tree = filterInput.toJSON() -- cgit v1.2.3