commando.html5/node_modules/tap/test/isolated-conf-test.js

17 lines
368 B
JavaScript

// https://github.com/isaacs/node-tap/issues/24
var tap = require("../")
, test = tap.test
var config = {foo: "bar"}
test("one", config, function(t) {
t.equal(t.conf.foo, "bar")
t.equal(t.conf.name, "one") // before fix this would be "two"
t.end()
})
test("two", config, function(t) {
t.equal(t.conf.foo, "bar")
t.equal(t.conf.name, "two")
t.end()
})