This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(jasmine){ | |
var protectedVariables = {}; | |
var oldJasmineIt = it; | |
/** | |
* This should be used to protect and tear down any variables inside a test class (not a beforeEach/afterEach function) | |
* that you would typically store, then reset back to the stored values. It helps to reduce some noise in tests | |
* @param protectedList | |
*/ | |
jasmine.protect = function(protectedList, fn) { | |
if (typeof protectedList.length !== 'number') { |