describe("the function", function(){ it("should do the thing", () => { assert.strictEqual(myFunction(2, 1), 3) Test.assertEqual(myFunction(1, 2), 4) assert.strictEqual(myFunction(2, 2), 6) let a = 3, b = 4 assert.strictEqual(myFunction(a, b), (a + 1) * b) assert.throws(myFunction(1, 'potato')) assert.deepEquals({ a: 1 }, { a: 1 }) }) })
Some text
JavaScript
C
Clojure
Common Lisp
Crystal
Forth
Haskell
Java
JavaScript
Julia
Lua
Nim
Prolog
Python
Racket
Ruby
TypeScript
Show preamble:
Convert Clipboard
Copy