Fakultas Ilmu Komputer UI

Commit 4a9777b8 authored by alif fadila safriyanto's avatar alif fadila safriyanto
Browse files

[RED] check topmenu state containst today quotes

parent 3eebdef1
......@@ -214,5 +214,14 @@ describe('TopMenu', () => {
topmenu.handleItemClick(new Event('click'), 'undefined');
expect(topmenu.state.activeItem).to.equal(undefined);
});
it('check topmenu state containst today quotes', () => {
const topmenu = ReactTestUtils.renderIntoDocument(
<TopMenu user={adminUser2}>
<div> test </div>
</TopMenu>);
const topMenuQuote = topmenu.state.todayQuote;
expect(topMenuQuote).to.exist;
});
});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment