更新
This commit is contained in:
1 parent
9635428f78
commit
ef01cdd6ee
6 files changed
+172
-66
No files matched your search
@@ -30,5 +30,10 @@ try {
|
||||
assert.equal(assets.isBinary, true); assert.equal(utils.chooseRuntimeDir(utils.detectVersion(skeleton), true), version);
|
||||
}
|
||||
}
|
||||
console.log('PASS: Eagle last-extension routing, case handling, ordinary-file exclusion and sibling cache isolation');
|
||||
const late = path.join(root, 'late'); fs.mkdirSync(late);
|
||||
const lateAtlas = path.join(late, 'hero.atlas.txt'); fs.writeFileSync(lateAtlas, 'hero.png\nsize: 64,64\n');
|
||||
assert.equal(utils.discoverAssets(lateAtlas, { strictStem: true }).skeletonPath, null);
|
||||
const lateSkeleton = path.join(late, 'hero.skel.bytes'); fs.writeFileSync(lateSkeleton, Buffer.from('\0' + '3.8.1\0'));
|
||||
assert.equal(utils.discoverAssets(lateAtlas, { strictStem: true, refreshIndex: true }).skeletonPath, lateSkeleton);
|
||||
console.log('PASS: Eagle routing, case handling, ordinary-file exclusion, cache isolation and late-arriving skeleton');
|
||||
} finally { fs.rmSync(root, { recursive: true, force: true }); }
|
||||
Reference in new issue
Block a user