From 3ed9b91616426ac0ab5dc16274019ce70a5b3e2c Mon Sep 17 00:00:00 2001 From: axross Date: Sun, 15 Nov 2015 14:05:07 +0900 Subject: [PATCH 1/3] Remove unneeded whitespaces in README --- readme.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.markdown b/readme.markdown index 85082cb7..47603a2c 100644 --- a/readme.markdown +++ b/readme.markdown @@ -15,10 +15,10 @@ var test = require('tape'); test('timing test', function (t) { t.plan(2); - + t.equal(typeof Date.now, 'function'); var start = Date.now(); - + setTimeout(function () { t.equal(Date.now() - start, 100); }, 100); @@ -114,13 +114,13 @@ var test = require('tape') ## test([name], [opts], cb) -Create a new test with an optional `name` string and optional `opts` object. +Create a new test with an optional `name` string and optional `opts` object. `cb(t)` fires with the new test object `t` once all preceeding tests have finished. Tests execute serially. Available `opts` options are: - opts.skip = true/false. See test.skip. -- opts.timeout = 500. Set a timeout for the test, after which it will fail. +- opts.timeout = 500. Set a timeout for the test, after which it will fail. See test.timeoutAfter. If you forget to `t.plan()` out how many assertions you are going to run and you @@ -154,7 +154,7 @@ Generate a passing assertion with a message `msg`. Automatically timeout the test after X ms. ## t.skip(msg) - + Generate an assertion that will be skipped over. ## t.ok(value, msg) From 77a2bbb40397d66557bf1c7aa3cdee8b30adbd5c Mon Sep 17 00:00:00 2001 From: axross Date: Sun, 15 Nov 2015 14:05:44 +0900 Subject: [PATCH 2/3] Add "tap-diff" and "tap-notify" to README --- readme.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.markdown b/readme.markdown index 47603a2c..f23b8361 100644 --- a/readme.markdown +++ b/readme.markdown @@ -89,6 +89,8 @@ that will output something pretty if you pipe TAP into them: - https://github.com/aghassemi/tap-xunit - https://github.com/namuol/tap-difflet - https://github.com/gritzko/tape-dom + - https://github.com/axross/tap-diff + - https://github.com/axross/tap-notify To use them, try `node test/index.js | tap-spec` or pipe it into one of the modules of your choice! From 35c6c089034add8ea6f47ef9f0d3a58e6c94dce7 Mon Sep 17 00:00:00 2001 From: axross Date: Mon, 16 Nov 2015 15:49:53 +0900 Subject: [PATCH 3/3] Revert "Remove unneeded whitespaces in README" This reverts commit 3ed9b91616426ac0ab5dc16274019ce70a5b3e2c. --- readme.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.markdown b/readme.markdown index f23b8361..ca774862 100644 --- a/readme.markdown +++ b/readme.markdown @@ -15,10 +15,10 @@ var test = require('tape'); test('timing test', function (t) { t.plan(2); - + t.equal(typeof Date.now, 'function'); var start = Date.now(); - + setTimeout(function () { t.equal(Date.now() - start, 100); }, 100); @@ -116,13 +116,13 @@ var test = require('tape') ## test([name], [opts], cb) -Create a new test with an optional `name` string and optional `opts` object. +Create a new test with an optional `name` string and optional `opts` object. `cb(t)` fires with the new test object `t` once all preceeding tests have finished. Tests execute serially. Available `opts` options are: - opts.skip = true/false. See test.skip. -- opts.timeout = 500. Set a timeout for the test, after which it will fail. +- opts.timeout = 500. Set a timeout for the test, after which it will fail. See test.timeoutAfter. If you forget to `t.plan()` out how many assertions you are going to run and you @@ -156,7 +156,7 @@ Generate a passing assertion with a message `msg`. Automatically timeout the test after X ms. ## t.skip(msg) - + Generate an assertion that will be skipped over. ## t.ok(value, msg)