我想要这样的代码:
describe('populate', function() {
it('should grab ', function() {
nock('http://someapi.com')
.post('/attractions')
.reply(200, [])
return request
.post('http://someapi.com/wrong')
.send({destId: id})
.catch(() =>
expect(nock.unsatisfaedMocks()).is.eql(['http://someapi.com/wrong'])
)
})
})
可能吗?