Fix specs

nolan/hinaloe-test
Etienne Lemay 2018-04-29 21:57:52 -04:00
parent 2e97b1faa6
commit 22b37b6e36
No known key found for this signature in database
GPG Key ID: EE7CF89146BB28E9
2 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
import emojiIndex from '../src/utils/emoji-index'
import emojiIndex from '../src/utils/emoji-index/emoji-index'
describe('#emojiIndex', () => {
describe('search', function() {

View File

@ -1,6 +1,8 @@
import React from 'react'
import TestUtils from 'react-dom/test-utils'
import Picker from '../src/components/picker'
import data from '../data/all.json'
import { NimblePicker } from '../src/components'
const { click } = TestUtils.Simulate
@ -11,11 +13,11 @@ const {
} = TestUtils
const render = (props = {}) => {
const defaultProps = {}
return renderIntoDocument(<Picker {...defaultProps} {...props} />)
const defaultProps = { data }
return renderIntoDocument(<NimblePicker {...defaultProps} {...props} />)
}
describe('Picker', () => {
describe('NimblePicker', () => {
let subject
it('works', () => {