Skip to content

Commit 232f666

Browse files
committed
Added hide title tests
1 parent b4057db commit 232f666

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/unit/vue-command.spec.js

+10
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ describe('VueCommand', () => {
2222

2323
expect(wrapper.find('.vue-command__bar').exists()).toBe(false)
2424
})
25+
it('hides the Titles', () => {
26+
const wrapper = mount(VueCommand, {
27+
props: {
28+
hideTitle: true
29+
}
30+
})
31+
32+
expect(wrapper.find('vue-command__bar__title').exists()).toBe(false)
33+
expect(wrapper.find('vue-command__bar__title--invert').exists()).toBe(false)
34+
})
2535

2636
it('renders the given prompt', () => {
2737
const prompt = 'TEST_PROMPT'

0 commit comments

Comments
 (0)