Complete the code to import the Deno testing module.
import { [1] } from "https://deno.land/std/testing/asserts.ts";
The assertEquals function is imported to compare expected and actual values in tests.
Complete the code to define a test step with a descriptive name.
Deno.test("[1]", () => { // test code here });
The test name should describe what the test checks, like 'Check addition works'.
Fix the error in the test assertion to compare expected and actual values.
Deno.test("Sum test", () => { const result = 2 + 3; [1](result, 5); });
assertEquals compares two values for equality, which is needed here.
Fill both blanks to create a test step that checks if a function throws an error.
Deno.test("Error test", () => { [1](() => { throw new Error("fail"); }); [2](true); });
assertThrows checks if the function throws an error, and assert can be used to confirm a condition if needed.
Fill all three blanks to create a test that checks if a string includes a substring.
Deno.test("Substring test", () => { const text = "hello world"; const hasHello = text.[1]("hello"); [2](hasHello); [3](hasHello, true); });
The includes method checks if the string contains a substring. assert asserts the boolean is truthy, and assertEquals compares the value to true.
