Skip to content

Commit

Permalink
test: add queueMicrotask tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Aug 17, 2023
1 parent 0b515dc commit 8ca6d04
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/__tests__/queueMicrotask.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import queueMicrotask from '../queueMicrotask';

describe('queueMicrotask', () => {
it('Is a function', () => {
expect(typeof queueMicrotask).toBe('function');
});
it('Execute callback on next event loop cycle', done => {
queueMicrotask(done);
});
});

0 comments on commit 8ca6d04

Please sign in to comment.