Add test case for initial route signalling
This commit is contained in:
parent
26245951ad
commit
9fdf90db68
|
@ -59,3 +59,14 @@ describe("configurationTrace", function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe("nonempty initial routes", function () {
|
||||||
|
it("should be immediately signalled to the process", function () {
|
||||||
|
// Specifically, no Minimart.updateRoutes([]) first.
|
||||||
|
checkTrace(function (trace) {
|
||||||
|
World.spawn({ handleEvent: function (e) {
|
||||||
|
World.spawn({ handleEvent: trace }, [sub(["A", __], 0, 1)])
|
||||||
|
}}, [pub(["A", __])]);
|
||||||
|
}, [Minimart.updateRoutes([pub(["A", __]).label(1)])]);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in New Issue