Permalink
Browse files

two simple tests

  • Loading branch information...
1 parent aa6bf2c commit 68f1b2a4facb53611cc4b272d4cb7cbdc2fd9f4f @isaacs isaacs committed Apr 5, 2011
Showing with 29 additions and 0 deletions.
  1. +16 −0 test/simple-harness-test-with-plan.js
  2. +13 −0 test/simple-harness-test.js
@@ -0,0 +1,16 @@
+var tap = require("../")
+ , test = tap.test
+ , plan = tap.plan
+
+plan(2)
+
+test("trivial success", function (t) {
+ t.ok(true, "it works")
+ t.end()
+})
+
+test("two tests", function (t) {
+ t.equal(255, 0xFF, "math should work")
+ t.notOk(false, "false should not be ok")
+ t.end()
+})
@@ -0,0 +1,13 @@
+var tap = require("../")
+ , test = tap.test
+
+test("trivial success", function (t) {
+ t.ok(true, "it works")
+ t.end()
+})
+
+test("two tests", function (t) {
+ t.equal(255, 0xFF, "math should work")
+ t.notOk(false, "false should not be ok")
+ t.end()
+})

0 comments on commit 68f1b2a

Please sign in to comment.