Skip to content

Commit 4286fbf

Browse files
test: update snapshots
1 parent 47b16fd commit 4286fbf

File tree

4 files changed

+28
-22
lines changed

4 files changed

+28
-22
lines changed

Diff for: src/test/__snapshots__/tooltip-attributes.spec.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ exports[`tooltip attributes basic tooltip 1`] = `
1616
Hello World!
1717
<div
1818
class="react-tooltip-arrow"
19-
style="left: 5px; bottom: -4px;"
19+
style="left: -1px; bottom: -4px;"
2020
/>
2121
</div>
2222
</div>
@@ -39,7 +39,7 @@ exports[`tooltip attributes tooltip with place 1`] = `
3939
Hello World!
4040
<div
4141
class="react-tooltip-arrow"
42-
style="left: -4px; top: 5px;"
42+
style="left: -4px; top: -1px;"
4343
/>
4444
</div>
4545
</div>

Diff for: src/test/__snapshots__/tooltip-props.spec.js.snap

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exports[`tooltip props basic tooltip 1`] = `
1515
Hello World!
1616
<div
1717
class="react-tooltip-arrow"
18-
style="left: 5px; bottom: -4px;"
18+
style="left: -1px; bottom: -4px;"
1919
/>
2020
</div>
2121
</div>
@@ -38,7 +38,7 @@ exports[`tooltip props clickable tooltip 1`] = `
3838
</button>
3939
<div
4040
class="react-tooltip-arrow"
41-
style="left: 5px; bottom: -4px;"
41+
style="left: -1px; bottom: -4px;"
4242
/>
4343
</div>
4444
</div>
@@ -59,7 +59,7 @@ exports[`tooltip props tooltip with custom position 1`] = `
5959
Hello World!
6060
<div
6161
class="react-tooltip-arrow"
62-
style="left: 5px; bottom: -4px;"
62+
style="left: -1px; bottom: -4px;"
6363
/>
6464
</div>
6565
</div>
@@ -90,7 +90,7 @@ exports[`tooltip props tooltip with delay show 1`] = `
9090
Hello World!
9191
<div
9292
class="react-tooltip-arrow"
93-
style="left: 5px; bottom: -4px;"
93+
style="left: -1px; bottom: -4px;"
9494
/>
9595
</div>
9696
</div>
@@ -111,7 +111,7 @@ exports[`tooltip props tooltip with float 1`] = `
111111
Hello World!
112112
<div
113113
class="react-tooltip-arrow"
114-
style="left: 5px; bottom: -4px;"
114+
style="left: -1px; bottom: -4px;"
115115
/>
116116
</div>
117117
</div>
@@ -137,7 +137,7 @@ exports[`tooltip props tooltip with html 1`] = `
137137
</span>
138138
<div
139139
class="react-tooltip-arrow"
140-
style="left: 5px; bottom: -4px;"
140+
style="left: -1px; bottom: -4px;"
141141
/>
142142
</div>
143143
</div>
@@ -158,7 +158,7 @@ exports[`tooltip props tooltip with place 1`] = `
158158
Hello World!
159159
<div
160160
class="react-tooltip-arrow"
161-
style="left: -4px; top: 5px;"
161+
style="left: -4px; top: -1px;"
162162
/>
163163
</div>
164164
</div>

Diff for: src/test/__snapshots__/utils.spec.js.snap

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`compute positions all reference elements 1`] = `
4+
{
5+
"place": "top",
6+
"tooltipArrowStyles": {
7+
"bottom": "-4px",
8+
"left": "-1px",
9+
"right": "",
10+
"top": "",
11+
},
12+
"tooltipStyles": {
13+
"border": undefined,
14+
"left": "5px",
15+
"top": "-10px",
16+
},
17+
}
18+
`;

Diff for: src/test/utils.spec.js

+1-13
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,7 @@ describe('compute positions', () => {
5555
tooltipArrowReference: elementTooltipArrow,
5656
})
5757

58-
expect(value).toEqual({
59-
tooltipArrowStyles: {
60-
bottom: '-4px',
61-
left: '5px',
62-
right: '',
63-
top: '',
64-
},
65-
tooltipStyles: {
66-
left: '5px',
67-
top: '-10px',
68-
},
69-
place: 'top',
70-
})
58+
expect(value).toMatchSnapshot()
7159
})
7260
})
7361

0 commit comments

Comments
 (0)