We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3fb4d1 commit 736f5feCopy full SHA for 736f5fe
tests/test.js
@@ -895,6 +895,14 @@ mpmodule("mixpanel");
895
equal(mixpanel.test.persistence.props[i_ref_d], "examixpanel.testle.com", "Just domain should be saved");
896
});
897
898
+ test("current url set correctly", 2, function() {
899
+ var current_url = "$current_url";
900
+ var event = mixpanel.test.track("check current url");
901
+ var props = event.properties;
902
+ ok(current_url in props, "current url in props");
903
+ equal(props[current_url], window.location.href, "current url is properly set");
904
+ });
905
+
906
test("set_config", 2, function() {
907
ok(!mixpanel.config.test, "test isn't set already");
908
mixpanel.set_config({ test: 1 });
0 commit comments