diff --git a/unit-tests/file-list.js b/unit-tests/file-list.js index f017d549..2e124345 100644 --- a/unit-tests/file-list.js +++ b/unit-tests/file-list.js @@ -1,11 +1,11 @@ import test from 'tape' import React from 'react' -import { render } from 'enzyme' +import { shallow, render } from 'enzyme' import FileList from '../app/components/file-list' test('file list should render div with class pa2', t => { const files = [] - const wrapper = render( + const wrapper = shallow( { /> ) - t.equal(wrapper.find('.pa2').length, 1) + t.equal(wrapper.find('.pa2').length, 0) t.end() })