build: using rollup-plugin-esbuild
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { raf, cancelRaf } from '../src/utils';
|
||||
|
||||
test('raf', async () => {
|
||||
const spy = jest.fn();
|
||||
raf(spy);
|
||||
|
||||
expect(spy).toHaveBeenCalledTimes(1);
|
||||
cancelRaf(1);
|
||||
});
|
||||
Reference in New Issue
Block a user