From 1c3f72db1778e10781f8c98c37376a7a45c1f5f3 Mon Sep 17 00:00:00 2001 From: spalger Date: Mon, 16 Nov 2015 17:45:47 -0600 Subject: [PATCH] [transport] update tests to check 391f228 --- test/unit/specs/transport.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/specs/transport.js b/test/unit/specs/transport.js index e4ff46511..476591b54 100644 --- a/test/unit/specs/transport.js +++ b/test/unit/specs/transport.js @@ -162,7 +162,7 @@ describe('Transport Class', function () { expect(trans).to.have.property('sniffedNodesProtocol', 'https'); }); - }) + }); describe('host config', function () { it('rejects non-strings/objects', function () { @@ -483,6 +483,7 @@ describe('Transport Class', function () { }; stub(conn, 'request', function (params) { + expect(params.headers).to.have.property('content-type', 'application/json'); expect(JSON.parse(params.body)).to.eql(body); done(); }); @@ -502,6 +503,7 @@ describe('Transport Class', function () { ]; stub(conn, 'request', function (params) { + expect(params.headers).to.have.property('content-type', 'application/x-ldjson'); expect(params.body).to.eql( '{"_id":"simple body"}\n' + '{"name":"ഢധയമബ"}\n'