Skip to content

Commit db7c9e2

Browse files
authored
chore: update scrollspy.spec.js (#2930)
1 parent 95f0d16 commit db7c9e2

File tree

2 files changed

+6
-43
lines changed

2 files changed

+6
-43
lines changed

src/directives/scrollspy/scrollspy.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const parseBindings = bindings => /* istanbul ignore next: not easy to test */ {
5050
}
5151

5252
// 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 */ {
5454
if (!inBrowser) {
5555
/* istanbul ignore next */
5656
return
@@ -64,7 +64,8 @@ const applyScrollspy = (el, bindings, vnode) => {
6464
}
6565

6666
// 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 */ {
6869
if (el[BV_SCROLLSPY]) {
6970
el[BV_SCROLLSPY].dispose()
7071
el[BV_SCROLLSPY] = null
@@ -76,10 +77,10 @@ const removeScrollspy = el => {
7677
* Export our directive
7778
*/
7879
export default {
79-
bind(el, bindings, vnode) {
80+
bind(el, bindings, vnode) /* istanbul ignore next: not easy to test */ {
8081
applyScrollspy(el, bindings, vnode)
8182
},
82-
inserted(el, bindings, vnode) {
83+
inserted(el, bindings, vnode) /* istanbul ignore next: not easy to test */ {
8384
applyScrollspy(el, bindings, vnode)
8485
},
8586
update(el, bindings, vnode) /* istanbul ignore next: not easy to test */ {
@@ -92,7 +93,7 @@ export default {
9293
applyScrollspy(el, bindings, vnode)
9394
}
9495
},
95-
unbind(el) {
96+
unbind(el) /* istanbul ignore next: not easy to test */ {
9697
removeScrollspy(el)
9798
}
9899
}

src/directives/scrollspy/scrollspy.spec.js

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

0 commit comments

Comments
 (0)