Gates.Test
Path:
loom-builder/src/gates.test.tsRelative: src/gates.test.tsSubproject: loom-builderCategory: dispatch-systemLines: 175Bytes: 6,688Imports: 3Exports: 0has tests
Content Preview
- import { describe, expect, test } from "bun:test";
- import {
- BudgetGovernor,
- LoopDetector,
- actionHash,
- canonicalJSON,
- destructiveBashReason,
- isIdempotentObservation,
- lintValidationGates,
- standardGateCmds,
- } from "./gates.js";
- import { GateHaltError } from "./types.js";
- describe("canonicalJSON / actionHash", () => {
- test("key order does not change hash", () => {
- expect(actionHash("bash", { a: 1, b: 2 })).toBe(actionHash("bash", { b: 2, a: 1 }));
- });
- test("different args