Skip to content

Commit f7c8ad1

Browse files
committed
Cleaning up test cases
1 parent 6ceaecb commit f7c8ad1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,15 @@ describe("keen", function() {
214214
});
215215

216216
it('should send the request', function() {
217-
mockGetRequest("/3.0/projects/"+projectId+"/queries/count?event_collection=foo", 200, mockResponse);
217+
mockGetRequest("/"+ apiVersion +"/projects/"+ projectId +"/queries/count?event_collection=foo", 200, mockResponse);
218218
keen.request('get', 'read', '/queries/count', {event_collection:'foo'}, function(err, res) {
219219
(err === null).should.be.true;
220220
res.should.eql(mockResponse);
221221
});
222222
});
223223

224224
it('has optional params', function() {
225-
mockGetRequest("/3.0/projects/"+projectId+"/queries/count?event_collection=bar", 200, mockResponse);
225+
mockGetRequest("/"+ apiVersion +"/projects/"+projectId+"/queries/count?event_collection=bar", 200, mockResponse);
226226
keen.request('get', 'read', '/queries/count', {event_collection:'bar'}, function(err, res) {
227227
(err === null).should.be.true;
228228
res.should.eql(mockResponse);

0 commit comments

Comments
 (0)