Publish Forma Engine 0.3.0 source with documentation and CI
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import { builtinScripts, defaultProject } from "../engine/templates.ts";
|
||||
import { activeScene, validateProject } from "../engine/schema.ts";
|
||||
|
||||
test("new projects are independent empty scenes with no bundled game content", () => {
|
||||
const first = defaultProject();
|
||||
const second = defaultProject(false);
|
||||
validateProject(first);
|
||||
validateProject(second);
|
||||
assert.notEqual(first.id, second.id);
|
||||
assert.notEqual(first.activeSceneId, second.activeSceneId);
|
||||
assert.equal(activeScene(first).entities.length, 0);
|
||||
assert.deepEqual(first.assets, []);
|
||||
assert.deepEqual(first.scripts, []);
|
||||
assert.deepEqual(builtinScripts(), []);
|
||||
});
|
||||
Reference in New Issue
Block a user