Created
July 19, 2020 22:10
-
-
Save bengl/899f5baba90105a8ac228c1e8ae4ab8d to your computer and use it in GitHub Desktop.
This file contains 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 pitesti from 'https://dev.jspm.io/pitesti' | |
import streams from 'https://dev.jspm.io/readable-stream' | |
import { assertEquals } from "https://deno.land/std/testing/asserts.ts" | |
const outputStream = new streams.Writable({ | |
write (data, encoding, cb) { | |
Deno.stdout.writeSync(data) | |
cb() | |
} | |
}) | |
const test = pitesti({ | |
outputStream, | |
done: code => setTimeout(() => Deno.exit(code), 0) | |
}) | |
test('this thing works', () => { | |
assertEquals(1, 1) | |
}) | |
test('this thing does not work', () => { | |
assertEquals(1, -1) | |
}) | |
test() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment