Created
November 23, 2019 01:25
-
-
Save crookse/8d71e738210ba1fb6d4453a0583f58a4 to your computer and use it in GitHub Desktop.
Deno Unit Testing - imports, namedTest as test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as testing from "https://deno.land/std/testing/mod.ts"; | |
import { assertEquals } from "https://deno.land/std/testing/asserts.ts"; | |
function test(nameOfTest: string, testToRun: any): void { | |
return testing.test({ | |
name: nameOfTest, | |
fn(): void { | |
testToRun(); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment