Skip to content

Commit

Permalink
feat(jest): 79% coverage for store/ui/mutations.ts (#2819)
Browse files Browse the repository at this point in the history
  • Loading branch information
drepram committed Apr 12, 2022
1 parent 36d5a3f commit bd09940
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions store/ui/mutations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4041,4 +4041,19 @@ describe('mutations', () => {
type: 'group',
})
})
test('setSwiperSlideIndex', () => {
const localizedState = { ...initialState }
const argument = 10
mutations.default.setSwiperSlideIndex(localizedState, argument)
expect(localizedState.swiperSlideIndex).toBe(argument)
})
test('setFileSort', () => {
const localizedState = { ...initialState }
const argument = {
category: 'modified',
asc: true,
}
mutations.default.setFileSort(localizedState, argument)
expect(localizedState.fileSort).toBe(argument)
})
})

0 comments on commit bd09940

Please sign in to comment.