mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 01:11:25 +00:00
* Fix bug: cannot select kernel. Properly plug-in kernelspecs middleware to redux store configuration * Properly auto-launch kernel with nteract's epic * Keep kernel lazy start for notebook viewer * Add unit tets
14 lines
547 B
TypeScript
14 lines
547 B
TypeScript
import { getCoreEpics } from "./store";
|
|
import { epics } from "@nteract/core";
|
|
|
|
describe("configure redux store", () => {
|
|
it("configures store with correct epic if based on autoStartKernelOnNotebookOpen", () => {
|
|
// For now, assume launchKernelWhenNotebookSetEpic is the last epic
|
|
let filteredEpics = getCoreEpics(true);
|
|
expect(filteredEpics.pop()).toEqual(epics.launchKernelWhenNotebookSetEpic);
|
|
|
|
filteredEpics = getCoreEpics(false);
|
|
expect(filteredEpics.pop()).not.toEqual(epics.launchKernelWhenNotebookSetEpic);
|
|
});
|
|
});
|