Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bobnik committed May 11, 2024
1 parent 2970927 commit fe0edb6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions src/features/layers/layersSlice.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import configureMockStore from "redux-mock-store"
import thunk from "redux-thunk"
import { thunk } from "redux-thunk"
import { resetUniqueId } from "@/common/mocks"
import { configureStore } from "@reduxjs/toolkit"
import layersReducer, {
Expand All @@ -25,7 +25,8 @@ import fontsReducer from "@/features/fonts/fontsSlice"
import EffectLayer from "@/features/effects/EffectLayer"
import Layer from "./Layer"

const mockStore = configureMockStore([thunk])
const middleware = [thunk]
const mockStore = configureMockStore(middleware)

beforeEach(() => {
resetUniqueId()
Expand Down

0 comments on commit fe0edb6

Please sign in to comment.