mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
tests: don't force a callback in it, so we can use async in tests
This commit is contained in:
parent
c222fc5d0b
commit
86c0648ede
1 changed files with 0 additions and 12 deletions
|
@ -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);
|
|
||||||
}
|
|
||||||
})()
|
})()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue