Skip to content

Commit

Permalink
[refactored] useMockedRAF to use new sinon stub API
Browse files Browse the repository at this point in the history
Summary: As directed by a deprecation warning

Reviewers: O2 Material Motion, O3 Material JavaScript platform reviewers, #material_motion, featherless

Reviewed By: O2 Material Motion, #material_motion, featherless

Tags: #material_motion

Differential Revision: http://codereview.cc/D3109
  • Loading branch information
appsforartists committed Apr 27, 2017
1 parent 82c1546 commit 101d936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/testing-utils/src/useMockedRAF.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function useMockedRAF(closure) {

before(
() => {
stub(window, 'requestAnimationFrame', mockRAF.raf);
stub(window, 'requestAnimationFrame').callsFake(mockRAF.raf);
}
);

Expand Down

0 comments on commit 101d936

Please sign in to comment.