23 lines
704 B
TypeScript
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);
|
|
},
|
|
]);
|
|
});
|
|
});
|
|
} |