|
@@ -3,7 +3,7 @@
|
|
|
|
|
|
import { expect } from 'chai';
|
|
import { expect } from 'chai';
|
|
|
|
|
|
-import { LabShell, LayoutRestorer } from '@jupyterlab/application/src';
|
|
|
|
|
|
+import { ILabShell, LayoutRestorer } from '@jupyterlab/application/src';
|
|
|
|
|
|
import { InstanceTracker } from '@jupyterlab/apputils';
|
|
import { InstanceTracker } from '@jupyterlab/apputils';
|
|
|
|
|
|
@@ -63,7 +63,7 @@ describe('apputils', () => {
|
|
});
|
|
});
|
|
const currentWidget = new Widget();
|
|
const currentWidget = new Widget();
|
|
const mode: DockPanel.Mode = 'single-document';
|
|
const mode: DockPanel.Mode = 'single-document';
|
|
- const dehydrated: LabShell.ILayout = {
|
|
|
|
|
|
+ const dehydrated: ILabShell.ILayout = {
|
|
mainArea: { currentWidget, dock: null, mode },
|
|
mainArea: { currentWidget, dock: null, mode },
|
|
leftArea: { collapsed: true, currentWidget: null, widgets: null },
|
|
leftArea: { collapsed: true, currentWidget: null, widgets: null },
|
|
rightArea: { collapsed: true, currentWidget: null, widgets: null }
|
|
rightArea: { collapsed: true, currentWidget: null, widgets: null }
|
|
@@ -98,7 +98,7 @@ describe('apputils', () => {
|
|
});
|
|
});
|
|
const currentWidget = new Widget();
|
|
const currentWidget = new Widget();
|
|
// The `fresh` attribute is only here to check against the return value.
|
|
// The `fresh` attribute is only here to check against the return value.
|
|
- const dehydrated: LabShell.ILayout = {
|
|
|
|
|
|
+ const dehydrated: ILabShell.ILayout = {
|
|
fresh: false,
|
|
fresh: false,
|
|
mainArea: { currentWidget: null, dock: null, mode: null },
|
|
mainArea: { currentWidget: null, dock: null, mode: null },
|
|
leftArea: {
|
|
leftArea: {
|
|
@@ -159,7 +159,7 @@ describe('apputils', () => {
|
|
registry: new CommandRegistry(),
|
|
registry: new CommandRegistry(),
|
|
state: new StateDB({ namespace: NAMESPACE })
|
|
state: new StateDB({ namespace: NAMESPACE })
|
|
});
|
|
});
|
|
- const dehydrated: LabShell.ILayout = {
|
|
|
|
|
|
+ const dehydrated: ILabShell.ILayout = {
|
|
mainArea: { currentWidget: null, dock: null, mode: null },
|
|
mainArea: { currentWidget: null, dock: null, mode: null },
|
|
leftArea: { currentWidget: null, collapsed: true, widgets: null },
|
|
leftArea: { currentWidget: null, collapsed: true, widgets: null },
|
|
rightArea: { collapsed: true, currentWidget: null, widgets: null }
|
|
rightArea: { collapsed: true, currentWidget: null, widgets: null }
|
|
@@ -180,7 +180,7 @@ describe('apputils', () => {
|
|
});
|
|
});
|
|
const currentWidget = new Widget();
|
|
const currentWidget = new Widget();
|
|
// The `fresh` attribute is only here to check against the return value.
|
|
// The `fresh` attribute is only here to check against the return value.
|
|
- const dehydrated: LabShell.ILayout = {
|
|
|
|
|
|
+ const dehydrated: ILabShell.ILayout = {
|
|
fresh: false,
|
|
fresh: false,
|
|
mainArea: { currentWidget: null, dock: null, mode: null },
|
|
mainArea: { currentWidget: null, dock: null, mode: null },
|
|
leftArea: {
|
|
leftArea: {
|