StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
import { mount } from '@vue/test-utils'
|
|
import { BInputGroupText } from './input-group-text'
|
|
|
|
describe('input-group > input-group-text', () => {
|
|
it('has expected default structure', async () => {
|
|
const wrapper = mount(BInputGroupText)
|
|
|
|
expect(wrapper.is('div')).toBe(true)
|
|
expect(wrapper.classes()).toContain('input-group-text')
|
|
expect(wrapper.classes().length).toBe(1)
|
|
expect(wrapper.text()).toBe('')
|
|
})
|
|
|
|
it('has custom root element when prop tag set', async () => {
|
|
const wrapper = mount(BInputGroupText, {
|
|
propsData: {
|
|
tag: 'span'
|
|
}
|
|
})
|
|
|
|
expect(wrapper.is('span')).toBe(true)
|
|
expect(wrapper.classes()).toContain('input-group-text')
|
|
expect(wrapper.classes().length).toBe(1)
|
|
expect(wrapper.text()).toBe('')
|
|
})
|
|
|
|
it('renders content of default slot', async () => {
|
|
const wrapper = mount(BInputGroupText, {
|
|
slots: {
|
|
default: 'foobar'
|
|
}
|
|
})
|
|
|
|
expect(wrapper.is('div')).toBe(true)
|
|
expect(wrapper.classes()).toContain('input-group-text')
|
|
expect(wrapper.classes().length).toBe(1)
|
|
expect(wrapper.text()).toBe('foobar')
|
|
})
|
|
})
|
|
|