From 232f6669c46a5d6c0f44553642c9365a9a49848c Mon Sep 17 00:00:00 2001 From: jay pardasani Date: Wed, 28 Jun 2023 14:28:02 -0400 Subject: [PATCH] Added hide title tests --- tests/unit/vue-command.spec.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/unit/vue-command.spec.js b/tests/unit/vue-command.spec.js index ec3ae668..1df90764 100644 --- a/tests/unit/vue-command.spec.js +++ b/tests/unit/vue-command.spec.js @@ -22,6 +22,16 @@ describe('VueCommand', () => { expect(wrapper.find('.vue-command__bar').exists()).toBe(false) }) + it('hides the Titles', () => { + const wrapper = mount(VueCommand, { + props: { + hideTitle: true + } + }) + + expect(wrapper.find('vue-command__bar__title').exists()).toBe(false) + expect(wrapper.find('vue-command__bar__title--invert').exists()).toBe(false) + }) it('renders the given prompt', () => { const prompt = 'TEST_PROMPT'