A test for a module performing trivial transformation on data from an external service:
it('returns the first element in the response', function () {
var serviceResponse = [{a: 1}]
serviceStub.returns(serviceResponse)
expect(subject()).to.equal(serviceResponse[0])
})