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

12 lines
482 B
TypeScript
Raw Normal View History

module TK.SpaceTac.UI.Specs {
2017-10-26 21:47:13 +00:00
testing("AssetLoading", test => {
2018-05-15 14:57:45 +00:00
let testgame = setupSingleView(test, () => [new AssetLoading({}), []]);
2017-10-26 21:47:13 +00:00
test.case("builds cache keys from path", check => {
check.equals(AssetLoading.getKey("dir/file-path"), "dir-file-path");
check.equals(AssetLoading.getKey("dir/file-path.ext"), "dir-file-path");
check.equals(AssetLoading.getKey("dir/file-path.mp3"), "dir-file-path");
});
});
}