mirror of
https://github.com/blackajiro/Resonance.git
synced 2026-07-22 06:51:15 +00:00
9 lines
492 B
TypeScript
9 lines
492 B
TypeScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
import { SUPPORTED_SESSION_SCHEMA_VERSION, isSupportedSessionManifest } from "../src/domain/session";
|
|
|
|
test("isSupportedSessionManifest accepts only the current schema version", () => {
|
|
assert.equal(isSupportedSessionManifest({ schemaVersion: SUPPORTED_SESSION_SCHEMA_VERSION }), true);
|
|
assert.equal(isSupportedSessionManifest({ schemaVersion: 3 }), false);
|
|
assert.equal(isSupportedSessionManifest({}), false);
|
|
});
|