1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-04-20 00:17:04 +00:00

Merge pull request #223 from fredsa/fileexts2

Recommend default extensions #206
This commit is contained in:
Steven Hugg
2026-03-06 09:53:36 +01:00
committed by GitHub
35 changed files with 57 additions and 58 deletions
+4 -1
View File
@@ -217,7 +217,10 @@ async function testPlatform(platid, romname, maxframes, callback) {
if (dbgtree != null) JSON.stringify(dbgtree);
}
// misc
assert.ok(platform.getDefaultExtension().startsWith('.'));
var exts = platform.getDefaultExtensions();
assert.ok(Array.isArray(exts));
assert.ok(exts.length > 0);
exts.forEach(ext => assert.ok(ext.startsWith('.')));
if (platform.getROMExtension) assert.ok(platform.getROMExtension().startsWith("."));
// load state again
platform.loadState(state3);