Add test case for initial route signalling

This commit is contained in:
Tony Garnock-Jones 2014-08-30 13:18:37 -07:00
parent 26245951ad
commit 9fdf90db68
1 changed files with 11 additions and 0 deletions

View File

@ -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)])]);
});
});