Skip to content

Commit

Permalink
test: add component tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed Jan 2, 2024
1 parent 67c1b77 commit 3fe8d37
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions src/components/toolbar/InfoTooltip.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('<InfoTooltip />', () => {

const wrapper = await mount(InfoTooltip, {
slots: {
default: () => h('button', {}, slotContent),
default: h('button', {}, slotContent),
},
})

Expand All @@ -35,7 +35,7 @@ describe('<InfoTooltip />', () => {
text: tooltip,
},
slots: {
default: () => h('button', {}, slotContent),
default: h('button', {}, slotContent),
},
})

Expand All @@ -55,7 +55,7 @@ describe('<InfoTooltip />', () => {
text: tooltip,
},
slots: {
default: () => h('button', {}, slotContent),
default: h('button', {}, slotContent),
},
})

Expand All @@ -77,8 +77,8 @@ describe('<InfoTooltip />', () => {

const wrapper = await mount(InfoTooltip, {
slots: {
default: () => h('button', {}, slotContent),
tooltip: () => h('div', {}, tooltip),
default: h('button', {}, slotContent),
tooltip: h('div', {}, tooltip),
},
})

Expand All @@ -95,8 +95,8 @@ describe('<InfoTooltip />', () => {

const wrapper = await mount(InfoTooltip, {
slots: {
default: () => h('button', {}, slotContent),
tooltip: () => h('div', {}, tooltip),
default: h('button', {}, slotContent),
tooltip: h('div', {}, tooltip),
},
})

Expand Down
4 changes: 2 additions & 2 deletions src/components/toolbar/MarkdownToolbar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ describe('<MarkdownToolbar />', () => {
}),
},
slots: {
'editor-actions': () => [
'editor-actions': [
h('button', { 'data-testid': 'save' }, saveButtonText),
h('button', { 'data-testid': 'cancel' }, cancelButtonText),
],
Expand Down Expand Up @@ -278,7 +278,7 @@ describe('<MarkdownToolbar />', () => {
}),
},
slots: {
'toolbar-right': () => h('button', { 'data-testid': 'custom' }, buttonText),
'toolbar-right': h('button', { 'data-testid': 'custom' }, buttonText),
},
})

Expand Down
6 changes: 3 additions & 3 deletions src/components/toolbar/ToolbarButton.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('<ToolbarButton />', () => {

const wrapper = await mount(ToolbarButton, {
slots: {
default: () => h('button', {}, slotContent),
default: h('button', {}, slotContent),
},
})

Expand All @@ -33,7 +33,7 @@ describe('<ToolbarButton />', () => {
icon: false,
},
slots: {
default: () => h('button', {}, slotContent),
default: h('button', {}, slotContent),
},
})

Expand All @@ -53,7 +53,7 @@ describe('<ToolbarButton />', () => {
appearance: 'primary',
},
slots: {
default: () => h('button', {}, slotContent),
default: h('button', {}, slotContent),
},
})

Expand Down

0 comments on commit 3fe8d37

Please sign in to comment.