From 2d50167e0bd86fb59789aca96fd4c604821b36e2 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Thu, 4 May 2023 10:18:54 +0200 Subject: [PATCH] Update tests --- packages/application/test/shell.spec.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/application/test/shell.spec.ts b/packages/application/test/shell.spec.ts index 74ff75842fb..4592600f4d8 100644 --- a/packages/application/test/shell.spec.ts +++ b/packages/application/test/shell.spec.ts @@ -28,12 +28,17 @@ describe('Shell for notebooks', () => { expect(shell).toBeInstanceOf(NotebookShell); }); - it('should make all areas empty initially', () => { - ['main', 'top', 'left', 'right', 'menu'].forEach((area) => { + it('should make some areas empty initially', () => { + ['main', 'left', 'right', 'menu'].forEach((area) => { const widgets = Array.from(shell.widgets(area as Shell.Area)); expect(widgets.length).toEqual(0); }); }); + + it('should have the skip link widget in the top area initially', () => { + const widgets = Array.from(shell.widgets('top')); + expect(widgets.length).toEqual(1); + }); }); describe('#widgets()', () => {