Skip to content

Instantly share code, notes, and snippets.

@crookse
Last active November 23, 2019 01:18
Show Gist options
  • Save crookse/f4ed08441a3596317aaa06a642eaf550 to your computer and use it in GitHub Desktop.
Save crookse/f4ed08441a3596317aaa06a642eaf550 to your computer and use it in GitHub Desktop.
Deno Unit Testing - imports, namedTest
import { runTests, test } from "https://deno.land/std/testing/mod.ts";
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
function namedTest(nameOfTest: string, testToRun: any): void {
return test({
name: nameOfTest,
fn(): void {
testToRun();
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment