From d783387ed3a7ef019dd7611d25c07d53a45d8eca Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 25 Nov 2024 14:26:58 +0100 Subject: [PATCH] test(CommandPalette): improve --- test/components/CommandPalette.spec.ts | 6 +- .../CommandPalette-vue.spec.ts.snap | 88 +++++++++---------- .../__snapshots__/CommandPalette.spec.ts.snap | 88 +++++++++---------- 3 files changed, 92 insertions(+), 90 deletions(-) diff --git a/test/components/CommandPalette.spec.ts b/test/components/CommandPalette.spec.ts index e578cb31..64d216e8 100644 --- a/test/components/CommandPalette.spec.ts +++ b/test/components/CommandPalette.spec.ts @@ -19,7 +19,8 @@ describe('CommandPalette', () => { label: 'Add hashtag', suffix: 'Add a hashtag to the current item.', icon: 'i-lucide-hash', - kbds: ['meta', 'H'] + kbds: ['meta', 'H'], + disabled: true }, { label: 'Add label', suffix: 'Add a label to the current item.', @@ -53,7 +54,8 @@ describe('CommandPalette', () => { label: 'benjamincanac', avatar: { src: 'https://github.com/benjamincanac.png' - } + }, + active: true }] }] diff --git a/test/components/__snapshots__/CommandPalette-vue.spec.ts.snap b/test/components/__snapshots__/CommandPalette-vue.spec.ts.snap index 09b54d44..4800b71a 100644 --- a/test/components/__snapshots__/CommandPalette-vue.spec.ts.snap +++ b/test/components/__snapshots__/CommandPalette-vue.spec.ts.snap @@ -17,7 +17,7 @@ exports[`CommandPalette > renders with as correctly 1`] = `
Add new folderCreate a new folder in the current directory or workspace.
-
Add hashtagAdd a hashtag to the current item. +
Add hashtagAdd a hashtag to the current item.
Add labelAdd a label to the current item. @@ -38,7 +38,7 @@ exports[`CommandPalette > renders with as correctly 1`] = `