1
0
Fork 0
spacetac/src/ui/Boot.spec.ts

14 lines
450 B
TypeScript
Raw Normal View History

2017-02-10 00:08:28 +00:00
/// <reference path="TestGame.ts" />
/// <reference path="Boot.ts" />
2017-09-24 22:23:22 +00:00
module TK.SpaceTac.UI.Specs {
2017-10-26 21:47:13 +00:00
testing("Boot", test => {
2018-05-15 14:57:45 +00:00
let testgame = setupSingleView(test, () => [new Boot({}), {}]);
2017-02-21 22:38:31 +00:00
2017-10-26 21:47:13 +00:00
test.case("places empty loading background", check => {
2018-05-15 14:57:45 +00:00
check.equals(testgame.view.children.length, 1);
check.equals(testgame.view.children.list[0] instanceof Phaser.GameObjects.Image, true);
2017-02-10 00:08:28 +00:00
});
});
}