Skip to content

Instantly share code, notes, and snippets.

@Raynos Raynos/x.js Secret
Created Mar 29, 2013

Embed
What would you like to do?
var test = require("tape")
var testling = require("testling")
var server
test("setup", function (assert) {
testling.spawn("test/setup.js", function (err, proc) {
assert.ifError(err)
server = proc
assert.end()
})
})
test("real code", ...)
test("teardown", function (assert) {
server.close(function (err) {
assert.ifError(err)
assert.end()
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.