Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(async () => {
vm = new TestAuxVM();
helper = new BotHelper(vm);
helper.userId = 'user';
recent = new RecentBotManager(helper);
});
beforeEach(async () => {
vm = new TestAuxVM(userId);
vm.processEvents = true;
helper = new BotHelper(vm);
helper.userId = userId;
selection = new SelectionManager(helper);
recent = new RecentBotManager(helper);
index = new BotIndex();
watcher = new BotWatcher(helper, index, vm.stateUpdated);
await vm.sendEvents([botAdded(createBot('user'))]);
manager = new BotPanelManager(watcher, helper, selection, recent);
});