mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 19:05:18 +00:00
19 lines
575 B
TypeScript
19 lines
575 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { auditLogKey, githubDataKey, organizationKey, taskKey, taskSandboxKey } from "../src/actors/keys.js";
|
|
|
|
describe("actor keys", () => {
|
|
it("prefixes every key with organization namespace", () => {
|
|
const keys = [
|
|
organizationKey("default"),
|
|
taskKey("default", "repo", "task"),
|
|
taskSandboxKey("default", "sbx"),
|
|
auditLogKey("default"),
|
|
githubDataKey("default"),
|
|
];
|
|
|
|
for (const key of keys) {
|
|
expect(key[0]).toBe("org");
|
|
expect(key[1]).toBe("default");
|
|
}
|
|
});
|
|
});
|