Skip to content

Commit

Permalink
Merge pull request #2 from brave/supress-raf-warning
Browse files Browse the repository at this point in the history
suppress React rAF warning while testing
  • Loading branch information
bbondy authored Nov 27, 2017
2 parents 70b10a2 + b44870f commit 94f6d05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/setupApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ global.HTMLElement = global.window.HTMLElement
if (global.chrome === undefined) {
global.chrome = getMockChrome()
}
// mocks rAF to suppress React warning while testing
global.requestAnimationFrame = function (cb) {
return setTimeout(cb, 0)
}

0 comments on commit 94f6d05

Please sign in to comment.