diff options
Diffstat (limited to 'web/src/js')
-rw-r--r-- | web/src/js/__tests__/components/Header/FilterDocsSpec.js | 4 | ||||
-rw-r--r-- | 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(<FilterDocs/>), 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(<FilterInput type='foo' color='red' placeholder='bar'/>), tree = filterInput.toJSON() |