help.spec.ts 825 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright (c) Jupyter Development Team.
  2. // Distributed under the terms of the Modified BSD License.
  3. import { HelpMenu } from '@jupyterlab/mainmenu';
  4. import { CommandRegistry } from '@lumino/commands';
  5. describe('@jupyterlab/mainmenu', () => {
  6. describe('HelpMenu', () => {
  7. let commands: CommandRegistry;
  8. let menu: HelpMenu;
  9. beforeAll(() => {
  10. commands = new CommandRegistry();
  11. });
  12. beforeEach(() => {
  13. menu = new HelpMenu({ commands });
  14. });
  15. afterEach(() => {
  16. menu.dispose();
  17. });
  18. describe('#constructor()', () => {
  19. it('should construct a new help menu', () => {
  20. expect(menu).toBeInstanceOf(HelpMenu);
  21. // For localization this is now defined when on the mainmenu-extension.
  22. expect(menu.title.label).toBe('');
  23. });
  24. });
  25. });
  26. });