Skip to content

Commit

Permalink
add serviceManager to mockApp
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Feb 28, 2024
1 parent 1445511 commit 5734094
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/__tests__/plugin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ISettingRegistry } from '@jupyterlab/settingregistry';
import { CommandRegistry } from '@lumino/commands';
import { ReadonlyJSONObject } from '@lumino/coreutils';
import { DocumentRegistry } from '@jupyterlab/docregistry';
import { ServiceManager } from '@jupyterlab/services';
import {
CodeMirrorEditorFactory,
CodeMirrorMimeTypeService,
Expand All @@ -34,7 +35,8 @@ function mockApp(): Partial<JupyterFrontEnd> {
return {
commands: new CommandRegistry(),
restored: Promise.resolve(),
docRegistry: new DocumentRegistry()
docRegistry: new DocumentRegistry(),
serviceManager: new ServiceManager(),
};
}

Expand Down

0 comments on commit 5734094

Please sign in to comment.