Skip to content

Commit

Permalink
test: update import assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Atticus64 committed Aug 12, 2024
1 parent 5c1a325 commit 2d606a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/validators/book.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const invalidBookError = (c: Context, book: string) => {
});
}

export const invalidChapterError = (c: Context, chapter: string, chapters: string) => {
export const invalidChapterError = (c: Context, chapter: string, chapters: string | number) => {
c.status(400);
return c.json({
error: "Invalid chapter",
Expand Down
2 changes: 1 addition & 1 deletion tests/book.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { app } from "$/mod.ts";
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts";
import { assertEquals } from "jsr:@std/assert";
import { runTest } from "./setup.ts";

Deno.test("Should return book info", async () => {
Expand Down
6 changes: 1 addition & 5 deletions tests/verses.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import {
assert,
assertEquals,
} from "https://deno.land/[email protected]/testing/asserts.ts";
import { assertEquals } from "jsr:@std/assert";
import { runTest } from "./setup.ts";
import { app } from "$/mod.ts";
import { books, Verse } from "$/constants.ts";

Deno.test("Get verse Genesis 1:1", async () => {
await runTest(async () => {
Expand Down

0 comments on commit 2d606a5

Please sign in to comment.