X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ecomp-portal-FE%2Fclient%2Fbower_components%2Flodash%2Fvendor%2Fbackbone%2Ftest%2Fsetup%2Fenvironment.js;fp=ecomp-portal-FE%2Fclient%2Fbower_components%2Flodash%2Fvendor%2Fbackbone%2Ftest%2Fsetup%2Fenvironment.js;h=0000000000000000000000000000000000000000;hb=b54df0ddd0c6a0372327c5aa3668e5a6458fcd64;hp=c2441ac7713b748b62c89fe4606c68689a553b38;hpb=39d1e62c84041831bfc52cca73b5ed5efaf57d27;p=portal.git diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/setup/environment.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/setup/environment.js deleted file mode 100644 index c2441ac7..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/setup/environment.js +++ /dev/null @@ -1,45 +0,0 @@ -(function() { - - var sync = Backbone.sync; - var ajax = Backbone.ajax; - var emulateHTTP = Backbone.emulateHTTP; - var emulateJSON = Backbone.emulateJSON; - var history = window.history; - var pushState = history.pushState; - var replaceState = history.replaceState; - - QUnit.config.noglobals = true; - - QUnit.testStart(function() { - var env = QUnit.config.current.testEnvironment; - - // We never want to actually call these during tests. - history.pushState = history.replaceState = function(){}; - - // Capture ajax settings for comparison. - Backbone.ajax = function(settings) { - env.ajaxSettings = settings; - }; - - // Capture the arguments to Backbone.sync for comparison. - Backbone.sync = function(method, model, options) { - env.syncArgs = { - method: method, - model: model, - options: options - }; - sync.apply(this, arguments); - }; - - }); - - QUnit.testDone(function() { - Backbone.sync = sync; - Backbone.ajax = ajax; - Backbone.emulateHTTP = emulateHTTP; - Backbone.emulateJSON = emulateJSON; - history.pushState = pushState; - history.replaceState = replaceState; - }); - -})();