mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-06 23:44:36 +00:00
The next object runtime moves from the private repository into pi: src/next (contracts, hosts and objects, documents, derives, links and relays, routines and jobs, the store) with its tests and examples in test/next, src/next-node (Node compression), and its design in docs/next (design.md, the decision log decisions.md, the slice plan slices.md, slice specs, books and benchmarks). AGENTS.md gets its code style. Not exported: the API changes with every slice until it has an entry point.
14 lines
443 B
TypeScript
14 lines
443 B
TypeScript
// Seal tokens (slice 6a §3, decision "The seal fence"): open until sealed, sealed for good.
|
|
|
|
import { describe, expect, it } from "vitest";
|
|
import { SealToken } from "../../../src/next/documents/internal.ts";
|
|
|
|
describe("seal tokens", () => {
|
|
it("start open and stay sealed once sealed", () => {
|
|
const token = new SealToken();
|
|
expect(token.sealed).toBe(false);
|
|
token.seal();
|
|
token.seal();
|
|
expect(token.sealed).toBe(true);
|
|
});
|
|
});
|