Complete the code to import the testing module in Deno.
import { [1] } from "https://deno.land/std/testing/asserts.ts";
The assertEquals function is imported from Deno's standard testing asserts module to compare expected and actual values in tests.
Complete the code to define a test case using Deno's test function.
Deno.[1]("example test", () => { // test code here });
Deno uses the test function to define test cases with a name and a function containing the test code.
Fix the error in the test assertion to correctly compare values.
Deno.test("sum test", () => { const result = 2 + 3; assert[1](result, 5); });
The correct assertion function is assertEquals which compares two values for equality in Deno tests.
Fill both blanks to create a test that checks if a string includes a substring.
Deno.test("string includes test", () => { const text = "hello world"; [1](text.[2]("world")); });
Use assert to check a boolean condition and includes to test if the string contains the substring.
Fill all three blanks to write a test that verifies an async function returns the expected value.
Deno.test("async fetch test", async () => { const data = await fetchData(); assert[1](data.[2], [3]); });
Use assertEquals to compare the value property of data to the expected string "success".
