Skip to content

Commit

Permalink
✅ remove useless test
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Jan 16, 2024
1 parent 01ca2f1 commit a59a11a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,6 @@ describe('main-thread-scheduling', () => {
expect(isTimeToYieldMocked('background')).toBe(false)
})

// todo: move to a separate file without jsdom environment
test(`check Node.js support`, async () => {
hasValidContext = false

try {
expect(isTimeToYield('user-visible')).toBe(false)
expect(Promise.race([yieldControl('user-visible'), Promise.resolve(-1)])).not.toBe(-1)
expect(Promise.race([yieldOrContinue('user-visible'), Promise.resolve(-1)])).not.toBe(
-1,
)
} finally {
hasValidContext = true
}
})

describe('with requestIdleCallback() mock', () => {
beforeEach(() => {
;(window as any).requestIdleCallback = (callback: IdleRequestCallback) => {
Expand Down

0 comments on commit a59a11a

Please sign in to comment.