How to use the @casual-simulation/aux-vm/vm/test/TestAuxVM.TestAuxVM function in @casual-simulation/aux-vm

To help you get started, we’ve selected a few @casual-simulation/aux-vm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github casual-simulation / aux / src / aux-vm-browser / managers / RecentBotManager.spec.ts View on Github external
beforeEach(async () => {
        vm = new TestAuxVM();
        helper = new BotHelper(vm);
        helper.userId = 'user';
        recent = new RecentBotManager(helper);
    });
github casual-simulation / aux / src / aux-vm-browser / managers / BotPanelManager.spec.ts View on Github external
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);
    });