Skip to content

Commit

Permalink
Another, more useful test for the same issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Bowers committed Mar 13, 2015
1 parent 7b54d08 commit bd749ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,12 @@ mpmodule("mixpanel.track");
});
});

test("Check token override works", 1, function() {
var props = {token: "HOPE SO"};
var data = mixpanel.test.track('test', props);
same(data.properties.token, "HOPE SO", 'token override worked');
});

asyncTest("callback doesn't override", 1, function() {
var result = [];
mixpanel.test.track('test', {}, function(response) {
Expand Down

0 comments on commit bd749ab

Please sign in to comment.