From e4f81d6550fe7badbbbbdaca6bf0c64890c9d0e8 Mon Sep 17 00:00:00 2001 From: spencer alger Date: Sun, 22 Dec 2013 11:55:36 -0700 Subject: [PATCH] updated tests for new promise resolution value --- test/unit/test_transport.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/unit/test_transport.js b/test/unit/test_transport.js index 644e99e55..4ac2f5ba6 100644 --- a/test/unit/test_transport.js +++ b/test/unit/test_transport.js @@ -733,7 +733,7 @@ describe('Transport Class', function () { ret.should.be.exactly(fakePromise); ret.abort.should.have.type('function'); }); - it('resolves the promise it returns with an object containing status and body keys', function (done) { + it('resolves the promise it with the response body', function (done) { var serverMock = nock('http://esbox.1.com') .get('/') .reply(200, { @@ -746,10 +746,7 @@ describe('Transport Class', function () { tran.request({}).then(function (resp) { resp.should.eql({ - body: { - good: 'day' - }, - status: 200 + good: 'day' }); done(); });