зеркало из https://github.com/microsoft/p-graph.git
added a assertion that actually works
This commit is contained in:
Родитель
0dff8cb78c
Коммит
c47f2667ea
|
@ -37,6 +37,12 @@ describe("PGraph", () => {
|
|||
graph.set("fn1", new Set(["fn2", "fail"]));
|
||||
|
||||
const pGraph = new PGraph(fns, graph);
|
||||
await pGraph.run();
|
||||
|
||||
expect.assertions(1);
|
||||
try {
|
||||
await pGraph.run();
|
||||
} catch (e) {
|
||||
expect(e).toBeTruthy();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче