Skip to content

Commit f6f1162

Browse files
committed
style: prettify syntax
1 parent 17a69c6 commit f6f1162

File tree

116 files changed

+845
-1087
lines changed

Some content is hidden

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

116 files changed

+845
-1087
lines changed

src/components/accordion/__tests__/CAccordion.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const defaultWrapper = mount(Component, {
99
},
1010
slots: {
1111
default: 'Default slot',
12-
}
12+
},
1313
})
1414

1515
describe(`Loads and display ${ComponentName} component`, () => {
@@ -18,10 +18,10 @@ describe(`Loads and display ${ComponentName} component`, () => {
1818
})
1919
it('renders correctly', () => {
2020
expect(defaultWrapper.html()).toMatchSnapshot()
21-
})
21+
})
2222
it('contain slots and classes', () => {
2323
expect(defaultWrapper.text()).toContain('Default slot')
2424
expect(defaultWrapper.classes('accordion')).toBe(true)
2525
expect(defaultWrapper.classes('accordion-flush')).toBe(true)
2626
})
27-
})
27+
})

src/components/accordion/__tests__/CAccordionBody.spec.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ const defaultWrapper = mount(Component, {
99
visible: true,
1010
},
1111
},
12-
propsData: {
13-
14-
},
12+
propsData: {},
1513
slots: {
1614
default: 'Default slot',
17-
}
15+
},
1816
})
1917

2018
describe(`Loads and display ${ComponentName} component`, () => {
@@ -23,9 +21,9 @@ describe(`Loads and display ${ComponentName} component`, () => {
2321
})
2422
it('renders correctly', () => {
2523
expect(defaultWrapper.html()).toMatchSnapshot()
26-
})
24+
})
2725
it('contain slots and classes', () => {
2826
expect(defaultWrapper.text()).toContain('Default slot')
2927
expect(defaultWrapper.find('.accordion-body').classes('accordion-body')).toBe(true)
3028
})
31-
})
29+
})

src/components/accordion/__tests__/CAccordionCollapse.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ const ComponentName = 'CAccordionCollapse'
55

66
const defaultWrapper = mount(Component, {
77
propsData: {
8-
visible: true
8+
visible: true,
99
},
1010
slots: {
1111
default: 'Default slot',
12-
}
12+
},
1313
})
1414

1515
describe(`Loads and display ${ComponentName} component`, () => {
@@ -18,11 +18,11 @@ describe(`Loads and display ${ComponentName} component`, () => {
1818
})
1919
it('renders correctly', () => {
2020
expect(defaultWrapper.html()).toMatchSnapshot()
21-
})
21+
})
2222
it('contain slots and classes', () => {
2323
expect(defaultWrapper.text()).toContain('Default slot')
2424
expect(defaultWrapper.classes('accordion-collapse')).toBe(true)
2525
expect(defaultWrapper.find('div').classes('collapse')).toBe(true)
2626
expect(defaultWrapper.find('div').classes('show')).toBe(true)
2727
})
28-
})
28+
})

src/components/accordion/__tests__/CAccordionHeader.spec.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ const defaultWrapper = mount(Component, {
99
visible: true,
1010
},
1111
},
12-
propsData: {
13-
14-
},
12+
propsData: {},
1513
slots: {
1614
default: 'Default slot',
17-
}
15+
},
1816
})
1917

2018
describe(`Loads and display ${ComponentName} component`, () => {
@@ -23,9 +21,9 @@ describe(`Loads and display ${ComponentName} component`, () => {
2321
})
2422
it('renders correctly', () => {
2523
expect(defaultWrapper.html()).toMatchSnapshot()
26-
})
24+
})
2725
it('contain slots and classes', () => {
2826
expect(defaultWrapper.text()).toContain('Default slot')
2927
expect(defaultWrapper.classes('accordion-header')).toBe(true)
3028
})
31-
})
29+
})

src/components/accordion/__tests__/CAccordionItem.spec.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ const defaultWrapper = mount(Component, {
99
activeItemKey: 1,
1010
},
1111
},
12-
propsData: {
13-
14-
},
12+
propsData: {},
1513
slots: {
1614
default: 'Default slot',
17-
}
15+
},
1816
})
1917

2018
describe(`Loads and display ${ComponentName} component`, () => {
@@ -23,9 +21,9 @@ describe(`Loads and display ${ComponentName} component`, () => {
2321
})
2422
it('renders correctly', () => {
2523
expect(defaultWrapper.html()).toMatchSnapshot()
26-
})
24+
})
2725
it('contain slots and classes', () => {
2826
expect(defaultWrapper.text()).toContain('Default slot')
2927
expect(defaultWrapper.classes('accordion-item')).toBe(true)
3028
})
31-
})
29+
})

src/components/alert/__tests__/CAlertHeading.spec.ts

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,40 @@ import { CAlertHeading as Component } from '../../../index'
44
const ComponentName = 'CAlertHeading'
55

66
const defaultWrapper = mount(Component, {
7-
propsData: {
8-
9-
},
7+
propsData: {},
108
slots: {
119
default: 'Default slot',
12-
}
10+
},
1311
})
1412

1513
const customWrapper = mount(Component, {
16-
propsData: {
17-
component: 'h2'
18-
},
19-
slots: {
20-
default: 'Default slot',
21-
}
22-
})
14+
propsData: {
15+
component: 'h2',
16+
},
17+
slots: {
18+
default: 'Default slot',
19+
},
20+
})
2321

2422
describe(`Loads and display ${ComponentName} component`, () => {
2523
it('has a name', () => {
2624
expect(Component.name).toMatch(ComponentName)
2725
})
2826
it('renders correctly', () => {
2927
expect(defaultWrapper.html()).toMatchSnapshot()
30-
})
28+
})
3129
it('contain slots and classes', () => {
3230
expect(defaultWrapper.text()).toContain('Default slot')
3331
expect(defaultWrapper.classes('alert-heading')).toBe(true)
3432
})
3533
})
3634

3735
describe(`Customize ${ComponentName} component`, () => {
38-
it('renders correctly', () => {
39-
expect(customWrapper.html()).toMatchSnapshot()
40-
})
41-
it('contain slots and classes', () => {
42-
expect(customWrapper.text()).toContain('Default slot')
43-
expect(customWrapper.classes('alert-heading')).toBe(true)
44-
})
45-
})
36+
it('renders correctly', () => {
37+
expect(customWrapper.html()).toMatchSnapshot()
38+
})
39+
it('contain slots and classes', () => {
40+
expect(customWrapper.text()).toContain('Default slot')
41+
expect(customWrapper.classes('alert-heading')).toBe(true)
42+
})
43+
})

src/components/alert/__tests__/CAlertLink.spec.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ import { CAlertLink as Component } from '../../../index'
44
const ComponentName = 'CAlertLink'
55

66
const defaultWrapper = mount(Component, {
7-
propsData: {
8-
9-
},
7+
propsData: {},
108
slots: {
119
default: 'Default slot',
12-
}
10+
},
1311
})
1412

1513
describe(`Loads and display ${ComponentName} component`, () => {
@@ -18,9 +16,9 @@ describe(`Loads and display ${ComponentName} component`, () => {
1816
})
1917
it('renders correctly', () => {
2018
expect(defaultWrapper.html()).toMatchSnapshot()
21-
})
19+
})
2220
it('contain slots and classes', () => {
2321
expect(defaultWrapper.text()).toContain('Default slot')
2422
expect(defaultWrapper.classes('alert-link')).toBe(true)
2523
})
26-
})
24+
})

src/components/avatar/__tests__/CAvatar.spec.ts

Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,24 @@ import { CAvatar as Component } from '../../../index'
44
const ComponentName = 'CAvatar'
55

66
const defaultWrapper = mount(Component, {
7-
propsData: {
8-
9-
},
7+
propsData: {},
108
slots: {
119
default: 'Default slot',
12-
}
10+
},
1311
})
1412

1513
const customWrapper = mount(Component, {
16-
propsData: {
17-
color: 'warning',
18-
shape: 'rounded-bottom',
19-
size: 'md',
20-
src: '/bazinga',
21-
status: 'danger',
22-
textColor: 'light'
23-
},
24-
slots: {
25-
default: 'Default slot',
26-
}
14+
propsData: {
15+
color: 'warning',
16+
shape: 'rounded-bottom',
17+
size: 'md',
18+
src: '/bazinga',
19+
status: 'danger',
20+
textColor: 'light',
21+
},
22+
slots: {
23+
default: 'Default slot',
24+
},
2725
})
2826

2927
describe(`Loads and display ${ComponentName} component`, () => {
@@ -32,28 +30,28 @@ describe(`Loads and display ${ComponentName} component`, () => {
3230
})
3331
it('renders correctly', () => {
3432
expect(defaultWrapper.html()).toMatchSnapshot()
35-
})
33+
})
3634
it('contain slots and classes', () => {
3735
expect(defaultWrapper.text()).toContain('Default slot')
3836
expect(defaultWrapper.classes('avatar')).toBe(true)
3937
})
4038
})
4139

4240
describe(`Loads and display ${ComponentName} component`, () => {
43-
it('has a name', () => {
44-
expect(Component.name).toMatch(ComponentName)
45-
})
46-
it('renders correctly', () => {
47-
expect(customWrapper.html()).toMatchSnapshot()
48-
})
49-
it('contain slots and classes', () => {
50-
expect(customWrapper.classes('avatar')).toBe(true)
51-
expect(customWrapper.classes('bg-warning')).toBe(true)
52-
expect(customWrapper.classes('avatar-md')).toBe(true)
53-
expect(customWrapper.classes('text-light')).toBe(true)
54-
expect(customWrapper.find('img').classes('avatar-img')).toBe(true)
55-
expect(customWrapper.find('img').attributes('src')).toBe('/bazinga')
56-
expect(customWrapper.find('span').classes('avatar-status')).toBe(true)
57-
expect(customWrapper.find('span').classes('bg-danger')).toBe(true)
58-
})
59-
})
41+
it('has a name', () => {
42+
expect(Component.name).toMatch(ComponentName)
43+
})
44+
it('renders correctly', () => {
45+
expect(customWrapper.html()).toMatchSnapshot()
46+
})
47+
it('contain slots and classes', () => {
48+
expect(customWrapper.classes('avatar')).toBe(true)
49+
expect(customWrapper.classes('bg-warning')).toBe(true)
50+
expect(customWrapper.classes('avatar-md')).toBe(true)
51+
expect(customWrapper.classes('text-light')).toBe(true)
52+
expect(customWrapper.find('img').classes('avatar-img')).toBe(true)
53+
expect(customWrapper.find('img').attributes('src')).toBe('/bazinga')
54+
expect(customWrapper.find('span').classes('avatar-status')).toBe(true)
55+
expect(customWrapper.find('span').classes('bg-danger')).toBe(true)
56+
})
57+
})

src/components/backdrop/__tests__/CBackdrop.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ const ComponentName = 'CBackdrop'
55

66
const defaultWrapper = mount(Component, {
77
propsData: {
8-
visible: true
8+
visible: true,
99
},
1010
slots: {
1111
default: 'Default slot',
12-
}
12+
},
1313
})
1414

1515
describe(`Loads and display ${ComponentName} component`, () => {
@@ -18,8 +18,8 @@ describe(`Loads and display ${ComponentName} component`, () => {
1818
})
1919
it('renders correctly', () => {
2020
expect(defaultWrapper.html()).toMatchSnapshot()
21-
})
21+
})
2222
it('contain slots and classes', () => {
2323
expect(defaultWrapper.find('div').classes('fade')).toBe(true)
2424
})
25-
})
25+
})

src/components/breadcrumb/__tests__/CBreadcrumb.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ const ComponentName = 'CBreadcrumb'
55

66
const defaultWrapper = mount(Component, {
77
propsData: {
8-
class: 'bazinga'
8+
class: 'bazinga',
99
},
1010
slots: {
1111
default: 'Default slot',
12-
}
12+
},
1313
})
1414

1515
describe(`Loads and display ${ComponentName} component`, () => {
@@ -18,11 +18,11 @@ describe(`Loads and display ${ComponentName} component`, () => {
1818
})
1919
it('renders correctly', () => {
2020
expect(defaultWrapper.html()).toMatchSnapshot()
21-
})
21+
})
2222
it('contain slots and classes', () => {
2323
expect(defaultWrapper.find('ol').text()).toContain('Default slot')
2424
expect(defaultWrapper.attributes('aria-label')).toBe('breadcrumb')
2525
expect(defaultWrapper.find('ol').classes('breadcrumb')).toBe(true)
2626
expect(defaultWrapper.find('ol').classes('bazinga')).toBe(true)
2727
})
28-
})
28+
})

0 commit comments

Comments
 (0)