Skip to content

Instantly share code, notes, and snippets.

@bengl
Created July 19, 2020 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bengl/899f5baba90105a8ac228c1e8ae4ab8d to your computer and use it in GitHub Desktop.
Save bengl/899f5baba90105a8ac228c1e8ae4ab8d to your computer and use it in GitHub Desktop.
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