Commit cae4f14a authored by isaacs's avatar isaacs

example setting #skip/#todo with an object

parent 42142ccf
...@@ -226,8 +226,9 @@ test("meta-tests", function (t) { ...@@ -226,8 +226,9 @@ test("meta-tests", function (t) {
// run the metatest. // run the metatest.
// *this* is the actual SUT in this case. // *this* is the actual SUT in this case.
t.ok(false, "failing todo #todo") t.ok(false, "failing todo #todo")
t.ok(true, "succeeding todo #todo") // can also set #todo or #skip explicitly
t.ok(false, "failing skip #skip") t.ok(true, "succeeding todo", {todo: true})
t.ok(false, "failing skip #skip", {skip: true})
t.ok(true, "suceeding skip #skip") t.ok(true, "suceeding skip #skip")
t.ok(false, "failing test") t.ok(false, "failing test")
t.ok(true, "succeeding test") t.ok(true, "succeeding test")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment