66 NotebookPanel
77} from '@jupyterlab/notebook' ;
88import { ISettingRegistry } from '@jupyterlab/settingregistry' ;
9- import { StateDB } from '@jupyterlab/statedb' ;
109import { CommandRegistry } from '@lumino/commands' ;
1110import { ReadonlyJSONObject } from '@lumino/coreutils' ;
1211import { DocumentRegistry } from '@jupyterlab/docregistry' ;
@@ -90,8 +89,7 @@ describe(corePlugin.id, () => {
9089 describe ( 'activation' , ( ) => {
9190 it ( 'should create add-tour command' , ( ) => {
9291 const app = mockApp ( ) ;
93- const stateDB = new StateDB ( ) ;
94- corePlugin . activate ( app as any , stateDB ) ;
92+ corePlugin . activate ( app as any ) ;
9593
9694 expect ( app . commands ?. hasCommand ( CommandIDs . addTour ) ) . toEqual ( true ) ;
9795 } ) ;
@@ -101,8 +99,7 @@ describe(corePlugin.id, () => {
10199 describe ( `${ CommandIDs . addTour } ` , ( ) => {
102100 it ( 'should add a tour command' , async ( ) => {
103101 const app = mockApp ( ) ;
104- const stateDB = new StateDB ( ) ;
105- const manager = corePlugin . activate ( app as any , stateDB ) as ITourManager ;
102+ const manager = corePlugin . activate ( app as any ) as ITourManager ;
106103 expect ( manager . tours . size ) . toEqual ( 0 ) ;
107104
108105 const tour = await app . commands ?. execute ( CommandIDs . addTour , {
@@ -121,8 +118,7 @@ describe(userPlugin.id, () => {
121118 describe ( 'activation' , ( ) => {
122119 it ( 'should have userTours' , async ( ) => {
123120 const app = mockApp ( ) ;
124- const stateDB = new StateDB ( ) ;
125- const manager = corePlugin . activate ( app as any , stateDB ) as ITourManager ;
121+ const manager = corePlugin . activate ( app as any ) as ITourManager ;
126122 const settings = mockSettingRegistry ( ) ;
127123 const userManager = userPlugin . activate (
128124 app as any ,
@@ -137,8 +133,7 @@ describe(userPlugin.id, () => {
137133 describe ( 'settings' , ( ) => {
138134 it ( 'should react to settings' , async ( ) => {
139135 const app = mockApp ( ) ;
140- const stateDB = new StateDB ( ) ;
141- const manager = corePlugin . activate ( app as any , stateDB ) as ITourManager ;
136+ const manager = corePlugin . activate ( app as any ) as ITourManager ;
142137 const settingsRegistry = mockSettingRegistry ( ) ;
143138 const userManager = userPlugin . activate (
144139 app as any ,
@@ -158,8 +153,7 @@ describe(notebookPlugin.id, () => {
158153 describe ( 'activation' , ( ) => {
159154 it ( 'should activate' , async ( ) => {
160155 const app = mockApp ( ) ;
161- const stateDB = new StateDB ( ) ;
162- const manager = corePlugin . activate ( app as any , stateDB ) as ITourManager ;
156+ const manager = corePlugin . activate ( app as any ) as ITourManager ;
163157 const nbTracker = mockNbTracker ( ) ;
164158 const notebookTourManager = notebookPlugin . activate (
165159 app as any ,
@@ -195,8 +189,7 @@ describe(defaultsPlugin.id, () => {
195189 describe ( 'activation' , ( ) => {
196190 it ( 'should activate' , ( ) => {
197191 const app = mockApp ( ) ;
198- const stateDB = new StateDB ( ) ;
199- const manager = corePlugin . activate ( app as any , stateDB ) as ITourManager ;
192+ const manager = corePlugin . activate ( app as any ) as ITourManager ;
200193 defaultsPlugin . activate ( app as any , manager ) ;
201194 expect ( manager . tours . size ) . toEqual ( DEFAULT_TOURS_SIZE ) ;
202195 } ) ;
0 commit comments