12 lines
482 B
TypeScript
12 lines
482 B
TypeScript
module TK.SpaceTac.UI.Specs {
|
|
testing("AssetLoading", test => {
|
|
let testgame = setupSingleView(test, () => [new AssetLoading({}), []]);
|
|
|
|
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");
|
|
});
|
|
});
|
|
}
|