Skip to content

Commit

Permalink
updating sinon integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreardon committed Oct 3, 2023
1 parent 1b7add7 commit a43bb16
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/jest-fake-timers/src/__tests__/sinon-integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ const mockWithGlobal = {
install: mockInstall,
timers: {
Date: jest.fn(),
cancelAnimationFrame: jest.fn(),
clearImmediate: jest.fn(),
clearInterval: jest.fn(),
clearTimeout: jest.fn(),
hrtime: jest.fn(),
nextTick: jest.fn(),
performance: jest.fn(),
queueMicrotask: jest.fn(),
requestAnimationFrame: jest.fn(),
setImmediate: jest.fn(),
setInterval: jest.fn(),
setTimeout: jest.fn(),
Expand Down Expand Up @@ -57,13 +59,15 @@ describe('`@sinonjs/fake-timers` integration', () => {
shouldClearNativeTimers: true,
toFake: [
'Date',
'cancelAnimationFrame',
'clearImmediate',
'clearInterval',
'clearTimeout',
'hrtime',
'nextTick',
'performance',
'queueMicrotask',
'requestAnimationFrame',
'setImmediate',
'setInterval',
'setTimeout',
Expand Down Expand Up @@ -93,12 +97,14 @@ describe('`@sinonjs/fake-timers` integration', () => {
shouldAdvanceTime: true,
shouldClearNativeTimers: true,
toFake: [
'cancelAnimationFrame',
'clearImmediate',
'clearInterval',
'clearTimeout',
'hrtime',
'performance',
'queueMicrotask',
'requestAnimationFrame',
'setImmediate',
'setInterval',
'setTimeout',
Expand Down Expand Up @@ -126,12 +132,14 @@ describe('`@sinonjs/fake-timers` integration', () => {
shouldAdvanceTime: true,
shouldClearNativeTimers: true,
toFake: [
'cancelAnimationFrame',
'clearImmediate',
'clearInterval',
'clearTimeout',
'hrtime',
'nextTick',
'performance',
'requestAnimationFrame',
'setImmediate',
'setInterval',
'setTimeout',
Expand Down Expand Up @@ -166,12 +174,14 @@ describe('`@sinonjs/fake-timers` integration', () => {
shouldClearNativeTimers: true,
toFake: [
'Date',
'cancelAnimationFrame',
'clearImmediate',
'clearInterval',
'clearTimeout',
'nextTick',
'performance',
'queueMicrotask',
'requestAnimationFrame',
'setImmediate',
'setInterval',
'setTimeout',
Expand Down

0 comments on commit a43bb16

Please sign in to comment.