From db1baf02bc1982fa177e99c39e08fa2224708156 Mon Sep 17 00:00:00 2001 From: James Halliday Date: Tue, 4 Mar 2014 21:13:16 -0800 Subject: [PATCH] passing nested test --- test/nested2.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/nested2.js diff --git a/test/nested2.js b/test/nested2.js new file mode 100644 index 00000000..58ae8f3d --- /dev/null +++ b/test/nested2.js @@ -0,0 +1,19 @@ +var test = require('../'); + +test(function(t) { + var i = 0 + t.test('setup', function(t) { + process.nextTick(function() { + t.equal(i, 0, 'called once') + i++ + t.end() + }) + }) + + + t.test('teardown', function(t) { + t.end() + }) + + t.end() +})