Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should call raf method correctly', () => {
raf.mockReset();
instance.typeString('test').runEventLoop();
expect(raf).toHaveBeenCalledTimes(1);
});