Skip to content

Commit

Permalink
Add comment in test
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Jul 19, 2023
1 parent 63fa5e9 commit f0a3d33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/widgets/tests/src/dockpanel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ describe('@lumino/widgets', () => {

it('should not have tabbar as child', () => {
let panel = new DockPanel();
let w1 = new Widget();
panel.addWidget(w1);
// Adding a widget in the dock panel adds the DOM of a TabBar, but the TabBar
// widget should not be a in the children list of the DockPanel widget.
panel.addWidget(new Widget());
for (const tabBar of panel.tabBars()) {
expect(panel.contains(tabBar)).to.be.false;
}
Expand Down

0 comments on commit f0a3d33

Please sign in to comment.