tests: don't force a callback in it, so we can use async in tests

pull/4415/head
webzwo0i 2020-10-09 20:50:47 +02:00 committed by John McLear
parent c222fc5d0b
commit 86c0648ede
1 changed files with 0 additions and 12 deletions

View File

@ -259,16 +259,4 @@ var helper = {};
/* Ensure console.log doesn't blow up in IE, ugly but ok for a test framework imho*/ /* Ensure console.log doesn't blow up in IE, ugly but ok for a test framework imho*/
window.console = window.console || {}; window.console = window.console || {};
window.console.log = window.console.log || function(){} window.console.log = window.console.log || function(){}
//force usage of callbacks in it
var _it = it;
it = function(name, func){
if(func && func.length !== 1){
func = function(){
throw new Error("Please use always a callback with it() - " + func.toString());
}
}
_it(name, func);
}
})() })()