Skip to content

Commit

Permalink
test: Remove test not necessary anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
zatteo committed Apr 14, 2023
1 parent e069296 commit 321e078
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions src/lib/reducers/apps.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,4 @@ describe('app reducer', () => {
type: 'RECEIVE_HOME_APP'
})
})

it('dispatch nothing if the default redirection if not in the apps array', async () => {
jest.spyOn(client.get, 'context').mockResolvedValue({
data: { attributes: { default_redirection: 'drive/' } }
})
const dispatchMock = jest.fn(x => x)

const setted = setDefaultApp([{ slug: 'home' }])
await setted(dispatchMock)
expect(dispatchMock).not.toHaveBeenCalled()
})
})
2 changes: 1 addition & 1 deletion test/components/__snapshots__/AppsContent.spec.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ exports[`Apps Content should not display home within the app items list, but jus
icon={[Function]}
spin={false}
/>
Back to home
Back to dashboard
</a>
</div>
`;
Expand Down

0 comments on commit 321e078

Please sign in to comment.