MCPcopy Create free account
hub / github.com/alsotang/node-lessons / testFib

Function testFib

lesson8/test/app.test.js:16–23  ·  view source on GitHub ↗
(n, expect, done)

Source from the content-addressed store, hash-verified

14 });
15
16 var testFib = function (n, expect, done) {
17 request.get('/fib')
18 .query({n: n})
19 .end(function (err, res) {
20 res.text.should.equal(expect);
21 done(err);
22 });
23 };
24 it('should return 0 when n === 0', function (done) {
25 testFib(0, '0', done);
26 });

Callers 1

app.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected