Skip to content

Commit da5a9b7

Browse files
authored
chore: minor update to tests (bootstrap-vue#2789)
1 parent 3bf21d8 commit da5a9b7

File tree

73 files changed

+72
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+72
-79
lines changed

src/components/alert/alert.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM, nextTick, setData } from '../../../tests/utils'
22

3-
describe('alert', async () => {
3+
describe('alert', () => {
44
jest.useFakeTimers()
55

66
beforeEach(loadFixture(__dirname, 'alert'))

src/components/badge/badge.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const variantList = [
1313
return { ref: `badge_${variant}`, variant }
1414
})
1515

16-
describe('badge', async () => {
16+
describe('badge', () => {
1717
beforeEach(loadFixture(__dirname, 'badge'))
1818
testVM()
1919

src/components/breadcrumb/breadcrumb.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('breadcrumb', async () => {
3+
describe('breadcrumb', () => {
44
beforeEach(loadFixture(__dirname, 'breadcrumb'))
55
testVM()
66

src/components/button-group/button-group.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('button-group', async () => {
3+
describe('button-group', () => {
44
beforeEach(loadFixture(__dirname, 'button-group'))
55
testVM()
66

src/components/button-toolbar/button-toolbar.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('button-toolbar', async () => {
3+
describe('button-toolbar', () => {
44
beforeEach(loadFixture(__dirname, 'button-toolbar'))
55
testVM()
66

src/components/button/button-close.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('button-close', async () => {
3+
describe('button-close', () => {
44
beforeEach(loadFixture(__dirname, 'button-close'))
55
testVM()
66

src/components/button/button.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const btnRefs = variants.reduce(
2626
[]
2727
)
2828

29-
describe('button', async () => {
29+
describe('button', () => {
3030
beforeEach(loadFixture(__dirname, 'button'))
3131
testVM()
3232

src/components/card/card-body.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import CardBody from './card-body'
22
import { mount } from '@vue/test-utils'
33

4-
describe('card-body', async () => {
4+
describe('card-body', () => {
55
it('has root element "div"', async () => {
66
const wrapper = mount(CardBody)
77
expect(wrapper.is('div')).toBe(true)

src/components/card/card-footer.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import CardFooter from './card-footer'
22
import { mount } from '@vue/test-utils'
33

4-
describe('card-footer', async () => {
4+
describe('card-footer', () => {
55
it('has root element "div"', async () => {
66
const wrapper = mount(CardFooter)
77
expect(wrapper.is('div')).toBe(true)

src/components/card/card-group.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import CardGroup from './card-group'
22
import { mount } from '@vue/test-utils'
33

4-
describe('card-group', async () => {
4+
describe('card-group', () => {
55
it('has root element "div"', async () => {
66
const wrapper = mount(CardGroup)
77
expect(wrapper.is('div')).toBe(true)

src/components/card/card-header.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import CardHeader from './card-header'
22
import { mount } from '@vue/test-utils'
33

4-
describe('card-header', async () => {
4+
describe('card-header', () => {
55
it('has root element "div"', async () => {
66
const wrapper = mount(CardHeader)
77
expect(wrapper.is('div')).toBe(true)

src/components/card/card-img-lazy.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import CardImgLazy from './card-img-lazy'
22
import { mount } from '@vue/test-utils'
33

4-
describe('card-image', async () => {
4+
describe('card-image', () => {
55
it('default has tag "img"', async () => {
66
const wrapper = mount(CardImgLazy, {
77
context: {

src/components/card/card-img.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import CardImg from './card-img'
22
import { mount } from '@vue/test-utils'
33

4-
describe('card-image', async () => {
4+
describe('card-image', () => {
55
it('default has tag "img"', async () => {
66
const wrapper = mount(CardImg, {
77
context: {

src/components/card/card-sub-title.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import CardSubTitle from './card-sub-title'
22
import { mount } from '@vue/test-utils'
33

4-
describe('card-sub-title', async () => {
4+
describe('card-sub-title', () => {
55
it('default has tag "h6"', async () => {
66
const wrapper = mount(CardSubTitle)
77
expect(wrapper.is('h6')).toBe(true)

src/components/card/card-text.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import CardText from './card-text'
22
import { mount } from '@vue/test-utils'
33

4-
describe('card-text', async () => {
4+
describe('card-text', () => {
55
it('has root element "p"', async () => {
66
const wrapper = mount(CardText)
77
expect(wrapper.is('p')).toBe(true)

src/components/card/card-title.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import CardTitle from './card-title'
22
import { mount } from '@vue/test-utils'
33

4-
describe('card-title', async () => {
4+
describe('card-title', () => {
55
it('default has tag "h4"', async () => {
66
const wrapper = mount(CardTitle)
77
expect(wrapper.is('h4')).toBe(true)

src/components/card/card.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('card', async () => {
3+
describe('card', () => {
44
beforeEach(loadFixture(__dirname, 'card'))
55
testVM()
66

src/components/carousel/carousel-slide.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import CarouselSlide from './carousel-slide'
22
import { mount } from '@vue/test-utils'
33

4-
describe('carousel-slide', async () => {
4+
describe('carousel-slide', () => {
55
it('has root element "div"', async () => {
66
const wrapper = mount(CarouselSlide)
77
expect(wrapper.is('div')).toBe(true)

src/components/carousel/carousel.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { loadFixture, nextTick, testVM, setData } from '../../../tests/utils'
22

33
jest.useFakeTimers()
44

5-
describe('carousel', async () => {
5+
describe('carousel', () => {
66
beforeEach(loadFixture(__dirname, 'carousel'))
77
testVM()
88

src/components/collapse/collapse.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM, nextTick, setData } from '../../../tests/utils'
22

3-
describe('collapse', async () => {
3+
describe('collapse', () => {
44
beforeEach(loadFixture(__dirname, 'collapse'))
55
testVM()
66

src/components/dropdown/dropdown-form.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import DropdownForm from './dropdown-form'
22
import { mount } from '@vue/test-utils'
33

4-
describe('dropdown-form', async () => {
4+
describe('dropdown-form', () => {
55
it('renders with tag "form"', async () => {
66
const wrapper = mount(DropdownForm)
77
expect(wrapper.is('form')).toBe(true)

src/components/dropdown/dropdown-item-button.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import DropdownItemBtn from './dropdown-item-button'
22
import { mount } from '@vue/test-utils'
33

4-
describe('dropdown-item-button', async () => {
4+
describe('dropdown-item-button', () => {
55
it('renders with tag "button" and type="button" by default', async () => {
66
const wrapper = mount(DropdownItemBtn)
77
expect(wrapper.is('button')).toBe(true)

src/components/dropdown/dropdown-item.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import DropdownItem from './dropdown-item'
22
import { mount } from '@vue/test-utils'
33

4-
describe('dropdown-item', async () => {
4+
describe('dropdown-item', () => {
55
it('renders with tag "a" and href="#" by default', async () => {
66
const wrapper = mount(DropdownItem)
77
expect(wrapper.is('a')).toBe(true)

src/components/dropdown/dropdown-text.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import DropdownText from './dropdown-text'
22
import { mount } from '@vue/test-utils'
33

4-
describe('dropdown-text', async () => {
4+
describe('dropdown-text', () => {
55
it('renders with tag "p" by default', async () => {
66
const wrapper = mount(DropdownText)
77
expect(wrapper.is('p')).toBe(true)

src/components/dropdown/dropdown.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('dropdown', async () => {
3+
describe('dropdown', () => {
44
beforeEach(loadFixture(__dirname, 'dropdown'))
55
testVM()
66

src/components/embed/embed.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('embed', async () => {
3+
describe('embed', () => {
44
beforeEach(loadFixture(__dirname, 'embed'))
55
testVM()
66

src/components/form-checkbox/form-checkbox-group.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Check from './form-checkbox'
33
import Vue from 'vue'
44
import { mount } from '@vue/test-utils'
55

6-
describe('form-checkbox-group', async () => {
6+
describe('form-checkbox-group', () => {
77
/* Structure, class and attributes tests */
88

99
it('default has structure <div></div>', async () => {

src/components/form-checkbox/form-checkbox.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Input from './form-checkbox'
22
import { mount } from '@vue/test-utils'
33

4-
describe('form-checkbox', async () => {
4+
describe('form-checkbox', () => {
55
/* Custom checkbox structure, class and attributes tests */
66

77
it('default has structure <div><input/><label></label></div>', async () => {

src/components/form-file/form-file.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Input from './form-file'
22
import { mount } from '@vue/test-utils'
33

4-
describe('form-file', async () => {
4+
describe('form-file', () => {
55
it('default has expected structure, classes and attributes', async () => {
66
const wrapper = mount(Input, {
77
propsData: {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('form-group', async () => {
3+
describe('form-group', () => {
44
beforeEach(loadFixture(__dirname, 'form-group'))
55
testVM()
66
})

src/components/form-input/form-input.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Input from './form-input'
22
import { mount } from '@vue/test-utils'
33
import Vue from 'vue'
44

5-
describe('form-input', async () => {
5+
describe('form-input', () => {
66
it('has class form-control', async () => {
77
const wrapper = mount(Input)
88
const input = wrapper.find('input')

src/components/form-radio/form-radio-group.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Radio from './form-radio'
33
import Vue from 'vue'
44
import { mount } from '@vue/test-utils'
55

6-
describe('form-radio-group', async () => {
6+
describe('form-radio-group', () => {
77
/* Structure, class and attributes tests */
88

99
it('default has structure <div></div>', async () => {

src/components/form-radio/form-radio.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Input from './form-radio'
22
import { mount } from '@vue/test-utils'
33

4-
describe('form-radio', async () => {
4+
describe('form-radio', () => {
55
/* Custom radio structure, class and attributes tests */
66

77
it('default has structure <div><input/><label></label></div>', async () => {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('form-select', async () => {
3+
describe('form-select', () => {
44
beforeEach(loadFixture(__dirname, 'form-select'))
55
testVM()
66
})

src/components/form-textarea/fixtures/form-textarea.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/components/form-textarea/form-textarea.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Textarea from './form-textarea'
22
import { mount } from '@vue/test-utils'
33

4-
describe('form-textarea', async () => {
4+
describe('form-textarea', () => {
55
it('root element is textarea', async () => {
66
const input = mount(Textarea)
77
expect(input.element.type).toBe('textarea')

src/components/form/form-invalid-feedback.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Feedback from './form-invalid-feedback'
22
import { mount } from '@vue/test-utils'
33

4-
describe('form-invalid-feedback', async () => {
4+
describe('form-invalid-feedback', () => {
55
it('default should have tag div', async () => {
66
const feedback = mount(Feedback)
77
expect(feedback.is('div')).toBe(true)

src/components/form/form-row.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('form-row', async () => {
3+
describe('form-row', () => {
44
beforeEach(loadFixture(__dirname, 'form-row'))
55
testVM()
66

src/components/form/form-text.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('form-text', async () => {
3+
describe('form-text', () => {
44
beforeEach(loadFixture(__dirname, 'form-text'))
55
testVM()
66

src/components/form/form-valid-feedback.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Feedback from './form-valid-feedback'
22
import { mount } from '@vue/test-utils'
33

4-
describe('form-valid-feedback', async () => {
4+
describe('form-valid-feedback', () => {
55
it('default should have tag div', async () => {
66
const feedback = mount(Feedback)
77
expect(feedback.is('div')).toBe(true)

src/components/form/form.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('form', async () => {
3+
describe('form', () => {
44
beforeEach(loadFixture(__dirname, 'form'))
55
testVM()
66
})

src/components/image/img.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('img', async () => {
3+
describe('img', () => {
44
beforeEach(loadFixture(__dirname, 'image'))
55
testVM()
66

src/components/input-group/input-group.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('input-group', async () => {
3+
describe('input-group', () => {
44
beforeEach(loadFixture(__dirname, 'input-group'))
55
testVM()
66

src/components/jumbotron/jumbotron.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('jumbotron', async () => {
3+
describe('jumbotron', () => {
44
beforeEach(loadFixture(__dirname, 'jumbotron'))
55
testVM()
66

src/components/layout/col.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function computeBkPtClass(type, breakpoint, val) {
1818
return className.toLowerCase()
1919
}
2020

21-
describe('col', async () => {
21+
describe('col', () => {
2222
beforeEach(loadFixture(__dirname, 'col'))
2323
testVM()
2424

src/components/layout/container.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { loadFixture, testVM } from '../../../tests/utils'
22

3-
describe('container', async () => {
3+
describe('container', () => {
44
beforeEach(loadFixture(__dirname, 'container'))
55
testVM()
66

0 commit comments

Comments
 (0)