Fix specs
parent
2e97b1faa6
commit
22b37b6e36
|
@ -1,4 +1,4 @@
|
||||||
import emojiIndex from '../src/utils/emoji-index'
|
import emojiIndex from '../src/utils/emoji-index/emoji-index'
|
||||||
|
|
||||||
describe('#emojiIndex', () => {
|
describe('#emojiIndex', () => {
|
||||||
describe('search', function() {
|
describe('search', function() {
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import TestUtils from 'react-dom/test-utils'
|
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
|
const { click } = TestUtils.Simulate
|
||||||
|
|
||||||
|
@ -11,11 +13,11 @@ const {
|
||||||
} = TestUtils
|
} = TestUtils
|
||||||
|
|
||||||
const render = (props = {}) => {
|
const render = (props = {}) => {
|
||||||
const defaultProps = {}
|
const defaultProps = { data }
|
||||||
return renderIntoDocument(<Picker {...defaultProps} {...props} />)
|
return renderIntoDocument(<NimblePicker {...defaultProps} {...props} />)
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('Picker', () => {
|
describe('NimblePicker', () => {
|
||||||
let subject
|
let subject
|
||||||
|
|
||||||
it('works', () => {
|
it('works', () => {
|
||||||
|
|
Loading…
Reference in New Issue