Skip to content

Commit

Permalink
Added tests for middleware/index.ts (#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviraldevv authored Jan 29, 2023
1 parent 078cfb4 commit ce7fb61
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/middleware/index.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as exports from "../../src/middleware/index";
import { isAuth } from "../../src/middleware/isAuth";
import {describe,it,expect} from "vitest";

describe("index", () => {
it("should export isAuth", () => {
expect(exports.isAuth).toBe(isAuth);
});
});

0 comments on commit ce7fb61

Please sign in to comment.