test: snapshot update, createRange mock
This commit is contained in:
@@ -21,3 +21,14 @@ describe('Popovers.vue', () => {
|
|||||||
expect(wrapper.findComponent(Popovers)).toBeTruthy()
|
expect(wrapper.findComponent(Popovers)).toBeTruthy()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (global.document) {
|
||||||
|
document.createRange = () => ({
|
||||||
|
setStart: () => {},
|
||||||
|
setEnd: () => {},
|
||||||
|
commonAncestorContainer: {
|
||||||
|
nodeName: 'BODY',
|
||||||
|
ownerDocument: document,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
@@ -25,3 +25,14 @@ describe('Tooltips.vue', () => {
|
|||||||
// expect(wrapper.element).toMatchSnapshot()
|
// expect(wrapper.element).toMatchSnapshot()
|
||||||
// })
|
// })
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (global.document) {
|
||||||
|
document.createRange = () => ({
|
||||||
|
setStart: () => {},
|
||||||
|
setEnd: () => {},
|
||||||
|
commonAncestorContainer: {
|
||||||
|
nodeName: 'BODY',
|
||||||
|
ownerDocument: document,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
@@ -22,31 +22,31 @@ exports[`User.vue renders correctly 1`] = `
|
|||||||
class="card-body"
|
class="card-body"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
small=""
|
small=""
|
||||||
>
|
>
|
||||||
<!---->
|
<!---->
|
||||||
<div
|
<div
|
||||||
class="position-relative table-responsive"
|
class="position-relative table-responsive"
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
<table
|
<table
|
||||||
class="table table-striped table-fixed"
|
class="table table-striped table-fixed"
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
<thead
|
<thead
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
<tr
|
<tr
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
<th
|
<th
|
||||||
class=""
|
class=""
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
style="vertical-align: middle; overflow: hidden; width: 150px;"
|
style="vertical-align: middle; overflow: hidden; width: 150px;"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
Samppa Nori
|
Samppa Nori
|
||||||
</div>
|
</div>
|
||||||
@@ -54,11 +54,11 @@ exports[`User.vue renders correctly 1`] = `
|
|||||||
</th>
|
</th>
|
||||||
<th
|
<th
|
||||||
class=""
|
class=""
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
style="vertical-align: middle; overflow: hidden; width: 150px;"
|
style="vertical-align: middle; overflow: hidden; width: 150px;"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -69,54 +69,54 @@ exports[`User.vue renders correctly 1`] = `
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody
|
<tbody
|
||||||
class="position-relative"
|
class="position-relative"
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
<tr
|
<tr
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
<td
|
<td
|
||||||
class=""
|
class=""
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
registered
|
registered
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
class=""
|
class=""
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
2012/01/01
|
2012/01/01
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!---->
|
<!---->
|
||||||
<tr
|
<tr
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
<td
|
<td
|
||||||
class=""
|
class=""
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
role
|
role
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
class=""
|
class=""
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
Member
|
Member
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!---->
|
<!---->
|
||||||
<tr
|
<tr
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
<td
|
<td
|
||||||
class=""
|
class=""
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
status
|
status
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
class=""
|
class=""
|
||||||
data-v-44c7b9c7=""
|
data-v-1c2db5c2=""
|
||||||
>
|
>
|
||||||
Active
|
Active
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user