Commit 81b3f18d authored by Tim Zallmann's avatar Tim Zallmann

Check if Open Drawer was called when mounted

parent 662e7e3f
......@@ -49,6 +49,10 @@ describe('App', () => {
expect(getDrawer().exists()).toBe(true);
});
it('dispatches openDrawer when mounted', () => {
expect(actions.openDrawer).toHaveBeenCalled();
});
it('dispatches closeDrawer when clicking close', () => {
getDrawer().vm.$emit('close');
expect(actions.closeDrawer).toHaveBeenCalled();
......
Markdown is supported
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