From 060f6241f5da0a3dc89c2dd8b660d9f6ceb2fc72 Mon Sep 17 00:00:00 2001 From: Torgeir Pedersen Cook Date: Mon, 13 Mar 2017 15:43:58 +0100 Subject: [PATCH] Moved to test folder --- src/suggestion/{ => test}/suggestion-item.test.js | 4 ++-- src/suggestion/{ => test}/suggestion-list.test.js | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) rename src/suggestion/{ => test}/suggestion-item.test.js (96%) rename src/suggestion/{ => test}/suggestion-list.test.js (94%) diff --git a/src/suggestion/suggestion-item.test.js b/src/suggestion/test/suggestion-item.test.js similarity index 96% rename from src/suggestion/suggestion-item.test.js rename to src/suggestion/test/suggestion-item.test.js index fce769f714..97b2d63b63 100644 --- a/src/suggestion/suggestion-item.test.js +++ b/src/suggestion/test/suggestion-item.test.js @@ -1,9 +1,9 @@ import {mount} from 'enzyme'; import {assert} from 'chai'; import React from 'react'; -import SuggestionItem from './suggestion-item'; +import SuggestionItem from '../suggestion-item'; import sinon from 'sinon'; -import './test/setup'; +import './setup'; function item() { return {header: 'header'}; diff --git a/src/suggestion/suggestion-list.test.js b/src/suggestion/test/suggestion-list.test.js similarity index 94% rename from src/suggestion/suggestion-list.test.js rename to src/suggestion/test/suggestion-list.test.js index fa5a1667ff..7b8c8d7669 100644 --- a/src/suggestion/suggestion-list.test.js +++ b/src/suggestion/test/suggestion-list.test.js @@ -2,9 +2,9 @@ import { shallow, mount } from 'enzyme'; import { assert } from 'chai'; import sinon from 'sinon'; import React from 'react'; -import SuggestionList from './suggestion-list'; -import SuggestionListContainer from './suggestion-list-container'; -import './test/setup'; +import SuggestionList from '../suggestion-list'; +import SuggestionListContainer from '../suggestion-list-container'; +import './setup'; function suggestions() { return [ @@ -29,7 +29,8 @@ function propsSuggestionList(_suggestions = suggestions()) { renderSuggestion, renderNoSuggestion, refHighlightedSuggestion: () => {}, - onKeyDown: () => {} + onKeyDown: () => {}, + id : 'id' }; }