File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ module.exports = {
12
12
coverageDirectory : "<rootDir>/coverage" ,
13
13
collectCoverageFrom : [
14
14
"src/**/*.{js,vue}" ,
15
+ "!src/components/index.js" ,
15
16
"!src/index.umd.js" ,
16
17
"!**/node_modules/**"
17
18
]
Original file line number Diff line number Diff line change @@ -19,9 +19,7 @@ describe("SidebarNavLabel.vue", () => {
19
19
} ) ;
20
20
it ( 'has hasSlotDefault computed property' , ( ) => {
21
21
expect ( typeof SidebarNavLabel . computed . classList ) . toBe ( 'function' )
22
- } )
23
- it ( 'has getClasses method' , ( ) => {
24
- expect ( typeof SidebarNavLabel . methods . getClasses ) . toBe ( 'function' )
22
+ expect ( typeof SidebarNavLabel . computed . itemClasses ) . toBe ( 'function' )
25
23
} )
26
24
it ( 'renders correctly' , ( ) => {
27
25
const wrapper = mount ( SidebarNavLabel , {
Original file line number Diff line number Diff line change @@ -29,9 +29,15 @@ describe("SidebarNavLink.vue", () => {
29
29
expect ( typeof SidebarNavLink . computed . classList ) . toBe ( 'function' )
30
30
expect ( typeof SidebarNavLink . computed . classIcon ) . toBe ( 'function' )
31
31
expect ( typeof SidebarNavLink . computed . linkVariant ) . toBe ( 'function' )
32
+ expect ( typeof SidebarNavLink . computed . attrClasses ) . toBe ( 'function' )
32
33
expect ( typeof SidebarNavLink . computed . itemClasses ) . toBe ( 'function' )
34
+ expect ( typeof SidebarNavLink . computed . disabledClasses ) . toBe ( 'function' )
35
+ expect ( typeof SidebarNavLink . computed . isDisabled ) . toBe ( 'function' )
33
36
expect ( typeof SidebarNavLink . computed . isExternalLink ) . toBe ( 'function' )
34
37
} )
38
+ it ( 'has getClassArray method' , ( ) => {
39
+ expect ( typeof SidebarNavLink . methods . getClassArray ) . toBe ( 'function' )
40
+ } )
35
41
it ( 'renders correctly' , ( ) => {
36
42
const wrapper = shallowMount ( SidebarNavLink , { localVue, router } )
37
43
expect ( wrapper . element ) . toMatchSnapshot ( )
Original file line number Diff line number Diff line change 1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
3
exports [` HeaderDropdown.vue renders correctly 1` ] = `
4
- <b-nav-item-dropdown >
4
+ <b-nav-item-dropdown-stub >
5
5
<template >
6
6
7
7
❔
@@ -17,5 +17,5 @@ exports[`HeaderDropdown.vue renders correctly 1`] = `
17
17
dropdown
18
18
</span >
19
19
</div >
20
- </b-nav-item-dropdown >
20
+ </b-nav-item-dropdown-stub >
21
21
` ;
You can’t perform that action at this time.
0 commit comments