Skip to content

Commit

Permalink
Immer 6 final (#409)
Browse files Browse the repository at this point in the history
* Update to Immer 6.0.1

* Fix AbortController test
  • Loading branch information
markerikson authored Mar 5, 2020
1 parent af6a2c1 commit 1279c3f
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 16 deletions.
47 changes: 33 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"src"
],
"dependencies": {
"immer": "^6.0.0",
"immer": "^6.0.1",
"redux": "^4.0.0",
"redux-thunk": "^2.3.0",
"reselect": "^4.0.0"
Expand Down
8 changes: 7 additions & 1 deletion src/createAsyncThunk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import {
getLog
} from 'console-testing-library/pure'

declare global {
interface Window {
AbortController: AbortController
}
}

describe('createAsyncThunk', () => {
it('creates the action types', () => {
const thunkActionCreator = createAsyncThunk('testType', async () => 42)
Expand Down Expand Up @@ -416,7 +422,7 @@ describe('createAsyncThunk with abortController', () => {
})

describe('behaviour with missing AbortController', () => {
let keepAbortController: typeof AbortController
let keepAbortController: typeof window['AbortController']
let freshlyLoadedModule: typeof import('./createAsyncThunk')
let restore: () => void
let nodeEnv: string
Expand Down

0 comments on commit 1279c3f

Please sign in to comment.