From 840b1086bf73a5fff81697d39d4e1ef522e727b6 Mon Sep 17 00:00:00 2001 From: AtuyL Date: Wed, 21 Nov 2018 20:11:47 +0900 Subject: [PATCH] fix: unit-test --- unit-tests/file-list.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() })