From 0ac76cfe34b3a0094290d18b4f043afc7fd1d7e4 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Mon, 22 Jun 2015 20:13:50 -0500 Subject: [PATCH] Remove mixpanel mock --- test/spec/mocks/mixpanelMock.js | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 test/spec/mocks/mixpanelMock.js diff --git a/test/spec/mocks/mixpanelMock.js b/test/spec/mocks/mixpanelMock.js deleted file mode 100644 index 2cb7300f73..0000000000 --- a/test/spec/mocks/mixpanelMock.js +++ /dev/null @@ -1,30 +0,0 @@ -'use strict' -//Adapted from http://stackoverflow.com/questions/23785603/angularjs-testing-with-jasmine-and-mixpanel -// @TODO: replace with an injectable mixpanel instance for testing - -var MixpanelMock; - -MixpanelMock = (function() { - function MixpanelMock() {} - - MixpanelMock.prototype.track = function() { - return console.log("mixpanel.track", arguments); - }; - - MixpanelMock.prototype.register_once = function() { - return console.log("mixpanel.register_once", arguments); - }; - - MixpanelMock.prototype.identify = function() { - return console.log("mixpanel.identify", arguments); - }; - - MixpanelMock.prototype.register = function() { - return console.log("mixpanel.register", arguments); - }; - - return MixpanelMock; - -})(); - -window.mixpanel = new MixpanelMock();