Skip to content

Commit

Permalink
Add test for requests with empty bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
rmeritz committed Jul 17, 2020
1 parent ce08308 commit f84c989
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/base.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f84c989

Please sign in to comment.