Skip to content

Commit

Permalink
feat(jest): 100% coverage for store/ui/getters
Browse files Browse the repository at this point in the history
  • Loading branch information
drepram committed Jun 14, 2022
1 parent 38bf2c7 commit db53bad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions store/ui/__snapshots__/getters.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Array [
]
`;

exports[`init should return the isFilesIndexLoading property of the initial state 1`] = `true`;

exports[`init should return the showSidebar property of the initial state 1`] = `true`;

exports[`init should return the swiperSlideIndex property of the initial state 1`] = `0`;
Expand Down
6 changes: 3 additions & 3 deletions store/ui/getters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ describe('init', () => {
})

it('should return the isFilesIndexLoading property of the initial state', () => {
// const result: any = inst.isFilesIndexLoading(InitialUIState())
// expect(result).toBeFalsy()
// expect(result).toMatchSnapshot()
const result: any = inst.isFilesIndexLoading(InitialUIState(), {}, {}, [])
expect(result).toBeTruthy()
expect(result).toMatchSnapshot()
})

it('should return the showSidebar property of the initial state', () => {
Expand Down

0 comments on commit db53bad

Please sign in to comment.