Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed May 4, 2023
1 parent 0718da1 commit 767e3da
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 @@ -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()', () => {
Expand Down

0 comments on commit 767e3da

Please sign in to comment.