Jason Grout 4 年之前
父節點
當前提交
eaffedeb72
共有 1 個文件被更改,包括 8 次插入4 次删除
  1. 8 4
      packages/application/test/shell.spec.ts

+ 8 - 4
packages/application/test/shell.spec.ts

@@ -469,8 +469,14 @@ describe('LabShell', () => {
       widget.id = 'main';
       shell.add(widget, 'main');
 
-      expect(toArray(shell.widgets('header')).map(v => v.id)).toEqual(['header']);
-      expect(toArray(shell.widgets('top')).slice(-1).map(v => v.id)).toEqual(['top']);
+      expect(toArray(shell.widgets('header')).map(v => v.id)).toEqual([
+        'header'
+      ]);
+      expect(
+        toArray(shell.widgets('top'))
+          .slice(-1)
+          .map(v => v.id)
+      ).toEqual(['top']);
       expect(toArray(shell.widgets('menu')).map(v => v.id)).toEqual(['menu']);
       expect(toArray(shell.widgets('left')).map(v => v.id)).toEqual(['left']);
       expect(toArray(shell.widgets('right')).map(v => v.id)).toEqual(['right']);
@@ -489,8 +495,6 @@ describe('LabShell', () => {
     });
   });
 
-
-
   describe('#titlePanel', () => {
     it('should be hidden in multiple document mode and visible in single document mode', () => {
       const widget = new Widget();