Skip to content

Commit

Permalink
Fix logEvent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blazzy committed Nov 21, 2017
1 parent 4e33b9a commit 1a33cf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/amplitude-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,7 @@ describe('setVersionName', function() {
});

it('should send request', function() {
amplitude.options.forceHttps = false;
amplitude.logEvent('Event Type 1');
assert.lengthOf(server.requests, 1);
assert.equal(server.requests[0].url, 'http://api.amplitude.com/');
Expand Down
1 change: 1 addition & 0 deletions test/amplitude.js
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,7 @@ describe('setVersionName', function() {
});

it('should send request', function() {
amplitude.options.forceHttps = false;
amplitude.logEvent('Event Type 1');
assert.lengthOf(server.requests, 1);
assert.equal(server.requests[0].url, 'http://api.amplitude.com/');
Expand Down

0 comments on commit 1a33cf1

Please sign in to comment.