@@ -50,7 +50,7 @@ const parseBindings = bindings => /* istanbul ignore next: not easy to test */ {
50
50
}
51
51
52
52
// Add or update ScrollSpy on our element
53
- const applyScrollspy = ( el , bindings , vnode ) => {
53
+ const applyScrollspy = ( el , bindings , vnode ) => /* istanbul ignore next: not easy to test */ {
54
54
if ( ! inBrowser ) {
55
55
/* istanbul ignore next */
56
56
return
@@ -64,7 +64,8 @@ const applyScrollspy = (el, bindings, vnode) => {
64
64
}
65
65
66
66
// Remove ScrollSpy on our element
67
- const removeScrollspy = el => {
67
+ /* istanbul ignore next: not easy to test */
68
+ const removeScrollspy = el => /* istanbul ignore next: not easy to test */ {
68
69
if ( el [ BV_SCROLLSPY ] ) {
69
70
el [ BV_SCROLLSPY ] . dispose ( )
70
71
el [ BV_SCROLLSPY ] = null
@@ -76,10 +77,10 @@ const removeScrollspy = el => {
76
77
* Export our directive
77
78
*/
78
79
export default {
79
- bind ( el , bindings , vnode ) {
80
+ bind ( el , bindings , vnode ) /* istanbul ignore next: not easy to test */ {
80
81
applyScrollspy ( el , bindings , vnode )
81
82
} ,
82
- inserted ( el , bindings , vnode ) {
83
+ inserted ( el , bindings , vnode ) /* istanbul ignore next: not easy to test */ {
83
84
applyScrollspy ( el , bindings , vnode )
84
85
} ,
85
86
update ( el , bindings , vnode ) /* istanbul ignore next: not easy to test */ {
@@ -92,7 +93,7 @@ export default {
92
93
applyScrollspy ( el , bindings , vnode )
93
94
}
94
95
} ,
95
- unbind ( el ) {
96
+ unbind ( el ) /* istanbul ignore next: not easy to test */ {
96
97
removeScrollspy ( el )
97
98
}
98
99
}
0 commit comments