From 6bfdd1304181d64438c177a2b33b12d88c857430 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Thu, 4 May 2023 10:29:49 +0200 Subject: [PATCH] Update more 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 4592600f4d..109d8b69cf 100644 --- a/packages/application/test/shell.spec.ts +++ b/packages/application/test/shell.spec.ts @@ -137,12 +137,17 @@ describe('Shell for tree view', () => { 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()', () => {