Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
const registry = new DocumentRegistry({ textModelFactory });
registry.addWidgetFactory(widgetFactory);
registry.addWidgetFactory(widgetFactoryShared);
DocumentRegistry.defaultFileTypes.forEach(ft => {
registry.addFileType(ft);
});
manager = new DocumentManager({
registry,
manager: services,
opener: {
open: (widget: Widget) => {
// no-op
}
}
});
});
beforeEach(() => {
const registry = new DocumentRegistry({ textModelFactory });
registry.addWidgetFactory(widgetFactory);
registry.addWidgetFactory(widgetFactoryShared);
DocumentRegistry.defaultFileTypes.forEach(ft => {
registry.addFileType(ft);
});
manager = new DocumentManager({
registry,
manager: services,
opener: {
open: (widget: Widget) => {
// no-op
}
}
});
});
beforeEach(() => {
DocumentRegistry.defaultFileTypes.forEach(ft => {
registry.addFileType(ft);
});
});
beforeEach(() => {
DocumentRegistry.defaultFileTypes.forEach(ft => {
registry.addFileType(ft);
});
});
beforeEach(() => {
DocumentRegistry.defaultFileTypes.forEach(ft => {
registry.addFileType(ft);
});
});
beforeEach(() => {
DocumentRegistry.defaultFileTypes.forEach(ft => {
registry.addFileType(ft);
});
});
beforeEach(() => {
DocumentRegistry.defaultFileTypes.forEach(ft => {
registry.addFileType(ft);
});
});
beforeEach(() => {
DocumentRegistry.defaultFileTypes.forEach(ft => {
registry.addFileType(ft);
});
});