From f84c98969adc60f53f9b658062019b822c38909e Mon Sep 17 00:00:00 2001 From: Rebecca Meritz Date: Fri, 17 Jul 2020 12:58:34 -0700 Subject: [PATCH] Add test for requests with empty bodies --- test/base.test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/base.test.js b/test/base.test.js index 9cd5c648..4a594b15 100644 --- a/test/base.test.js +++ b/test/base.test.js @@ -539,6 +539,18 @@ describe('Base', function() { }); }); + it('makes requests GET requests with empty bodies', function(done) { + expect(version).toEqual(expect.stringMatching(/^\d+\.\d+\.\d+$/)); + + fakeBase.runAction('get', '/my_table/rec456', {}, {}, function() { + const req = testExpressApp.get('most recent request'); + expect(req.method).toEqual('GET'); + expect(req.path).toEqual('/v0/app123/my_table/rec456'); + + done(); + }); + }); + it("won't make requests to a server with a self-signed SSL certificate", function(done) { teardownAsync() .then(function() {