1
0
Fork 0
spacetac/src/core/diffs/TurnEndDiff.spec.ts

23 lines
704 B
TypeScript

module TK.SpaceTac.Specs {
testing("TurnEndDiff", test => {
test.case("applies and reverts", check => {
const battle = new Battle();
battle.start();
TestTools.diffChain(check, battle, [
new TurnEndDiff(1),
new TurnEndDiff(2),
], [
check => {
check.equals(battle.turncount, 1);
},
check => {
check.equals(battle.turncount, 2);
},
check => {
check.equals(battle.turncount, 3);
},
]);
});
});
}