Skip to content

Commit

Permalink
fix(advanced checklist): remove test for reorder icon (#1209)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people committed Jul 5, 2022
1 parent d4188a3 commit 296aa9a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"version": "./scripts/VERSION.sh"
},
"dependencies": {
"@standardnotes/features": "workspace:*",
"@standardnotes/styles": "workspace:*"
},
"devDependencies": {
"@standardnotes/deterministic-zip": "^1.2.0",
"@standardnotes/eslint-config-extensions": "^1.0.4",
"@standardnotes/features": "workspace:*",
"copy-webpack-plugin": "^11.0.0",
"mini-css-extract-plugin": "^2.6.0",
"minimatch": "^5.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})

0 comments on commit 296aa9a

Please sign in to comment.