Gate Packs.Test

loom-builder-soltesttypescript
Path: loom-builder-sol/src/gate-packs.test.tsRelative: src/gate-packs.test.tsSubproject: loom-builder-solCategory: dispatch-system-sol
Lines: 101Bytes: 3,739Imports: 4Exports: 0has tests

Content Preview

  1. import { describe, test, expect } from "bun:test";
  2. import {
  3. loadGatePack,
  4. resolvePackValidation,
  5. staleDigestGuard,
  6. type GatePack,
  7. } from "./gate-packs.js";
  8. import { canonicalJSON } from "./gates.js";
  9. import type { ValidationCmd } from "./types.js";
  10. const GATES_DIR = import.meta.dir + "/../gates";
  11. describe("gate-packs", () => {
  12. test("loadGatePack loads v1.0.0/default", () => {
  13. const pack = loadGatePack("v1.0.0/default");
  14. expect(pack.scope).toBe("default");
  15. expect(pack.vali