Skip to content

Commit

Permalink
Test BDD style
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-bouvier committed Dec 15, 2024
1 parent 3227eb9 commit 0f56de6
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 6 deletions.
72 changes: 71 additions & 1 deletion deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions modules/add.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {assertEquals} from "@std/assert";
import { describe, it } from "jsr:@std/testing/bdd";
import {add} from "./add.js";

const {test} = Deno

test("foo", () => {
assertEquals(add(2, 3), 5);
});
describe("add", () => {
it("adds 2 numbers", () => {
assertEquals(add(2, 3), 5);
});
})

0 comments on commit 0f56de6

Please sign in to comment.