UNPKG

testresources

Version:

Adds fluent interface which, with help from superagent, makes testing HTTP resources simpler.

13 lines (8 loc) 283 B
var sharedFluentInterface = require('./sharedFluentInterface'); var createPutChain = function() { var putChain = Object.create(sharedFluentInterface); putChain.expectations = {}; putChain.expectStatus(200); return putChain; } module.exports = createPutChain;