Move public APIs into their own folder
And start writing actual tests for them
This commit is contained in:
parent
724361af6a
commit
960812308c
9 changed files with 192 additions and 6 deletions
12
api/tests/async.js
Normal file
12
api/tests/async.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
module.exports = {
|
||||
setTimeout : function($window) {
|
||||
$window.setTimeout = window.setTimeout;
|
||||
$window.clearTimeout = window.clearTimeout;
|
||||
},
|
||||
|
||||
requestAnimationFrame : function($window) {
|
||||
$window.requestAnimationFrame = window.requestAnimationFrame;
|
||||
$window.cancelAnimationFrame = window.cancelAnimationFrame;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue