mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 20:37:21 +00:00
10 lines
372 B
TypeScript
10 lines
372 B
TypeScript
import { describe, expect, it } from "bun:test";
|
|
import { shouldSkipAuth } from "../../src/auth/middlewares";
|
|
|
|
describe("auth middleware", () => {
|
|
it("should skip auth on asset paths", () => {
|
|
expect(shouldSkipAuth(new Request("http://localhost/assets/test.js"))).toBe(true);
|
|
expect(shouldSkipAuth(new Request("http://localhost/"))).toBe(false);
|
|
});
|
|
});
|