Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
manager = new DragDropManagerImpl()
backend = createTestBackend(manager, null, null) as TestBackend
;(manager as any).receiveBackend(backend)
registry = manager.getRegistry()
})
export function getBackendFromInstance(
instance: DndComponent,
): T {
return getInstance() as any
}
setup = (manager) => {
this.manager = manager;
this.backend = new TestBackend(manager);
this.registry = manager.getRegistry();
return this.backend;
}