Update paths in sync.sh, master/main.go, and CLAUDE.md to reflect the directory rename. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
25 lines
760 B
TypeScript
25 lines
760 B
TypeScript
// Tests for basic/logout.ts
|
|
// These tests verify the route structure and export
|
|
|
|
import assert from "node:assert/strict";
|
|
import { describe, it } from "node:test";
|
|
import { logoutRoute } from "./logout";
|
|
|
|
describe("basic/logout", () => {
|
|
describe("logoutRoute", () => {
|
|
it("has correct path", () => {
|
|
assert.equal(logoutRoute.path, "/logout");
|
|
});
|
|
|
|
it("handles GET and POST methods", () => {
|
|
assert.ok(logoutRoute.methods.includes("GET"));
|
|
assert.ok(logoutRoute.methods.includes("POST"));
|
|
assert.equal(logoutRoute.methods.length, 2);
|
|
});
|
|
|
|
it("has a handler function", () => {
|
|
assert.equal(typeof logoutRoute.handler, "function");
|
|
});
|
|
});
|
|
});
|