Skip to content

Commit

Permalink
cursorPrev/cursorNext test: Remove unneeded jest.useFakeTimers.
Browse files Browse the repository at this point in the history
The tests seem to pass without jest.useFakeTimers, and the warning about clearTimeout goes away.
  • Loading branch information
raineorshine committed May 6, 2024
1 parent 82d33a3 commit fbc1cfa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/shortcuts/__tests__/cursorNext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ describe('global suppress expansion', () => {
- e
- f`

jest.useFakeTimers()
const store = createTestStore()

store.dispatch([
Expand All @@ -202,7 +201,6 @@ describe('global suppress expansion', () => {
- e
- f`

jest.useFakeTimers()
const store = createTestStore()

store.dispatch([
Expand All @@ -228,7 +226,6 @@ describe('global suppress expansion', () => {
- e
- f`

jest.useFakeTimers()
const store = createTestStore()

store.dispatch([
Expand Down
3 changes: 0 additions & 3 deletions src/shortcuts/__tests__/cursorPrev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ describe('global suppress expansion', () => {
- e
- f`

jest.useFakeTimers()
const store = createTestStore()

store.dispatch([
Expand All @@ -184,7 +183,6 @@ describe('global suppress expansion', () => {
- e
- f`

jest.useFakeTimers()
const store = createTestStore()

store.dispatch([
Expand All @@ -210,7 +208,6 @@ describe('global suppress expansion', () => {
- e
- f`

jest.useFakeTimers()
const store = createTestStore()

store.dispatch([
Expand Down

0 comments on commit fbc1cfa

Please sign in to comment.