Skip to content

Commit bd749ab

Browse files
author
Joe Bowers
committed
Another, more useful test for the same issue
1 parent 7b54d08 commit bd749ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,12 @@ mpmodule("mixpanel.track");
285285
});
286286
});
287287

288+
test("Check token override works", 1, function() {
289+
var props = {token: "HOPE SO"};
290+
var data = mixpanel.test.track('test', props);
291+
same(data.properties.token, "HOPE SO", 'token override worked');
292+
});
293+
288294
asyncTest("callback doesn't override", 1, function() {
289295
var result = [];
290296
mixpanel.test.track('test', {}, function(response) {

0 commit comments

Comments
 (0)