material-motion-testing-utils
Version:
Utilities for testing the Material Motion framework
8 lines (7 loc) • 314 B
TypeScript
import { Performance } from './Performance';
export declare type PerformanceClosure = (performance: Performance) => any;
/**
* Replaces window.requestAnimationFrame with a mock for the duration of a mocha
* testing suite.
*/
export default function useMockedPerformance(closure: PerformanceClosure): () => any;