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.
36 lines
925 B
36 lines
925 B
import { mount } from '@vue/test-utils'
|
|
import { BCardText } from './card-text'
|
|
|
|
describe('card-text', () => {
|
|
it('has root element "p"', async () => {
|
|
const wrapper = mount(BCardText)
|
|
expect(wrapper.is('p')).toBe(true)
|
|
})
|
|
|
|
it('has class card-text', async () => {
|
|
const wrapper = mount(BCardText)
|
|
expect(wrapper.classes()).toContain('card-text')
|
|
})
|
|
|
|
it('has custom root element "div" when prop text-tag=div', async () => {
|
|
const wrapper = mount(BCardText, {
|
|
context: {
|
|
props: {
|
|
textTag: 'div'
|
|
}
|
|
}
|
|
})
|
|
expect(wrapper.is('div')).toBe(true)
|
|
expect(wrapper.classes()).toContain('card-text')
|
|
})
|
|
|
|
it('accepts custom classes', async () => {
|
|
const wrapper = mount(BCardText, {
|
|
context: {
|
|
class: ['foobar']
|
|
}
|
|
})
|
|
expect(wrapper.classes()).toContain('card-text')
|
|
expect(wrapper.classes()).toContain('foobar')
|
|
})
|
|
})
|
|
|