预览扫描

This commit is contained in:
tianmo committed 2026-09-17 18:47:17 +08:00
1 parent 2a5fe0ce1f
commit 2cb70c49d4
6 files changed
+86 -10

No files matched your search

+2
View File
@@ -35,6 +35,8 @@ try {
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);
const scoped = utils.discoverAssets(lateAtlas, { searchRoots: [late] });
assert.equal(scoped.skeletonPath, lateSkeleton);
for (const [name, json, expected] of [
['spine.json', { skeleton: { spine: '4.2.43' }, bones: [] }, 'spine'],
['empty-version.json', { skeleton: { spine: '' }, bones: [] }, 'other'],