Add test for allAtOnce

This commit is contained in:
Florrie 2018-04-30 12:36:15 -03:00
parent b6cb198144
commit 62dd6c58c6

View file

@ -208,3 +208,21 @@ test('counter, incrCounter, clearCounter', t => {
t.end();
});
test('allAtOnce', t => {
const rt = new Runtime();
const c = new Control(rt);
// Test harness (mocks `util`)
let ran = false;
const util = {
startBranch: function () {
ran = true;
}
};
// Execute test
c.allAtOnce({}, util);
t.true(ran);
t.end();
});