diff --git a/test/index.js b/test/index.js index 6439b66..e9c4174 100644 --- a/test/index.js +++ b/test/index.js @@ -12,13 +12,26 @@ test('', (t) => { - + + + + + + + + )); + t.equal(wrapper.find(Dropdown).length, 1, 'should render component'); + t.equal(wrapper.find(Dropdown.Toggle).length, 1, 'should render component'); - t.equal(wrapper.find(Dropdown.Menu).length, 1, 'should render component'); - t.equal(wrapper.find(MenuItem).length, 3, 'should render component'); + + // Multi-level dropdown menu + t.equal(wrapper.find(Dropdown.Menu).length, 4, 'should render component'); + + t.equal(wrapper.find(MenuItem).length, 6, 'should render component'); + t.end(); });