Skip to content

Commit

Permalink
Update more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed May 4, 2023
1 parent 2d50167 commit 0efef83
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/application/test/shell.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()', () => {
Expand Down

0 comments on commit 0efef83

Please sign in to comment.