Name: js-handler/node_modules/nodeunit/node_modules/tap/coverage-example/test/baz.test.js
| 1: | var test = require('tap').test, |
| 2: | Foo = require('../lib/foo'), |
| 3: | Bar = require('../lib/bar'), |
| 4: | foo, bar; |
| 5: | |
| 6: | test('setup', function(t) { |
| 7: | foo = new Foo('baz'); |
| 8: | t.ok(foo); |
| 9: | bar = new Bar('baz'); |
| 10: | t.ok(bar); |
| 11: | t.end(); |
| 12: | }); |
| 13: | |
| 14: | test('baz from Foo', function(t) { |
| 15: | t.equal('baz', foo.baz()); |
| 16: | t.end(); |
| 17: | }); |
| 18: | |
| 19: | test('baz from Bar', function(t) { |
| 20: | t.equal('baz', bar.baz()); |
| 21: | t.end(); |
| 22: | }); |
| 23: | |
| 24: | |
| 25: | test('teardown', function(t) { |
| 26: | t.ok(true); |
| 27: | t.end(); |
| 28: | }); |
