Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should accept useSeparators as an option', () => {
const menu1 = new JupyterLabMenu({ commands }, false);
const menu2 = new JupyterLabMenu({ commands }, true);
menu1.addGroup([{ command: 'run1' }, { command: 'run2' }]);
menu2.addGroup([{ command: 'run1' }, { command: 'run2' }]);
expect(menu1.menu.items.length).to.equal(2);
expect(menu2.menu.items.length).to.equal(4);
});
});
it('should accept useSeparators as an option', () => {
const menu1 = new JupyterLabMenu({ commands }, false);
const menu2 = new JupyterLabMenu({ commands }, true);
menu1.addGroup([{ command: 'run1' }, { command: 'run2' }]);
menu2.addGroup([{ command: 'run1' }, { command: 'run2' }]);
expect(menu1.menu.items.length).to.equal(2);
expect(menu2.menu.items.length).to.equal(4);
});
});
beforeEach(() => {
menu = new JupyterLabMenu({ commands });
});