fix(advanced checklist): remove test for reorder icon (#1209)

* fix: remove test for reorder icon

* chore: make features non-dev dep

Co-authored-by: Johnny Almonte <johnny243@users.noreply.github.com>
Co-authored-by: Mo <mo@standardnotes.com>
This commit is contained in:
Johnny A
2022-07-05 13:34:17 -04:00
committed by GitHub
parent d4188a3fa2
commit 296aa9aab2
2 changed files with 1 additions and 27 deletions

View File

@@ -98,29 +98,3 @@ it('hides group options if can not edit', () => {
expect(screen.queryByTestId('task-group-options')).not.toBeInTheDocument()
})
it('shows a reorder icon when on mobile', () => {
let defaultState: Partial<RootState> = {
settings: {
canEdit: false,
isRunningOnMobile: true,
spellCheckerEnabled: true,
},
}
testRender(<TaskGroup group={defaultGroup} isDragging={false} />, {}, defaultState)
expect(screen.queryByTestId('reorder-icon')).not.toBeInTheDocument()
defaultState = {
settings: {
canEdit: true,
isRunningOnMobile: true,
spellCheckerEnabled: true,
},
}
testRender(<TaskGroup group={defaultGroup} isDragging={false} />, {}, defaultState)
expect(screen.getByTestId('reorder-icon')).toBeInTheDocument()
})