Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix provider unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Olga Bulat <obulat@gmail.com>
obulat committed Jan 19, 2024

Verified

This commit was signed with the committer’s verified signature.
obulat Olga Bulat
1 parent 6309877 commit 953a9aa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/test/unit/specs/stores/provider.spec.js
Original file line number Diff line number Diff line change
@@ -38,10 +38,8 @@ describe("provider store", () => {
})

it("sets the default state", () => {
expect(providerStore.providers).toEqual({
[AUDIO]: [],
[IMAGE]: [],
})
expect(providerStore.providers.audio.length).toEqual(3)
expect(providerStore.providers.image.length).toBeGreaterThan(10)
expect(providerStore.fetchState).toEqual({
[AUDIO]: { hasStarted: false, isFetching: false, fetchingError: null },
[IMAGE]: { hasStarted: false, isFetching: false, fetchingError: null },

0 comments on commit 953a9aa

Please sign in to comment.