Skip to content

Commit

Permalink
Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed Jul 26, 2023
1 parent 6123551 commit 421bafc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/test/unit/specs/stores/media-store.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ describe("Media Store", () => {

it.each`
searchType | fetchState
${ALL_MEDIA} | ${{ fetchingError: null, hasStarted: true, isFetching: true, isFinished: false }}
${ALL_MEDIA} | ${{ fetchingError: "Error", hasStarted: true, isFetching: true, isFinished: false }}
${AUDIO} | ${{ fetchingError: "Error", hasStarted: true, isFetching: false, isFinished: true }}
${IMAGE} | ${{ fetchingError: null, hasStarted: true, isFetching: true, isFinished: false }}
`(
Expand Down Expand Up @@ -203,7 +203,7 @@ describe("Media Store", () => {

expect(mediaStore.fetchState).toEqual({
fetchingError: {
message: "All media fetching error. Failed to fetch image",
message: "Error",
statusCode: 500,
},
hasStarted: true,
Expand Down

0 comments on commit 421bafc

Please sign in to comment.