From 296aa9aab2072d4aad68485c31c000ad2c3bf013 Mon Sep 17 00:00:00 2001 From: Johnny A <5891646+johnny243@users.noreply.github.com> Date: Tue, 5 Jul 2022 13:34:17 -0400 Subject: [PATCH] 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 Co-authored-by: Mo --- packages/components/package.json | 2 +- .../src/features/tasks/TaskGroup.test.tsx | 26 ------------------- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/packages/components/package.json b/packages/components/package.json index a2399b7b0..7aceeeccb 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -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", diff --git a/packages/components/src/Packages/Editors/org.standardnotes.advanced-checklist/src/features/tasks/TaskGroup.test.tsx b/packages/components/src/Packages/Editors/org.standardnotes.advanced-checklist/src/features/tasks/TaskGroup.test.tsx index 7a9ca70ac..802362f3f 100644 --- a/packages/components/src/Packages/Editors/org.standardnotes.advanced-checklist/src/features/tasks/TaskGroup.test.tsx +++ b/packages/components/src/Packages/Editors/org.standardnotes.advanced-checklist/src/features/tasks/TaskGroup.test.tsx @@ -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 = { - settings: { - canEdit: false, - isRunningOnMobile: true, - spellCheckerEnabled: true, - }, - } - - testRender(, {}, defaultState) - - expect(screen.queryByTestId('reorder-icon')).not.toBeInTheDocument() - - defaultState = { - settings: { - canEdit: true, - isRunningOnMobile: true, - spellCheckerEnabled: true, - }, - } - - testRender(, {}, defaultState) - - expect(screen.getByTestId('reorder-icon')).toBeInTheDocument() -})