@@ -38,7 +38,7 @@ describe('Place Example', () => {
38
38
39
39
const rightOri = position ( right ) ;
40
40
const rightTip = position ( tooltip ) ;
41
- assert ( tooltip . innerText === 'This is a shared tooltip.\n ' ) ;
41
+ assert ( tooltip . innerText === 'This is a shared tooltip.' ) ;
42
42
assert ( rightOri . left < rightTip . left ) ;
43
43
44
44
// Mouseover to bottom
@@ -48,7 +48,7 @@ describe('Place Example', () => {
48
48
49
49
const bottomOri = position ( bottom ) ;
50
50
const bottomTip = position ( tooltip ) ;
51
- assert ( tooltip . innerText === 'This is a shared tooltip.\n ' ) ;
51
+ assert ( tooltip . innerText === 'This is a shared tooltip.' ) ;
52
52
assert ( bottomOri . top < bottomTip . top ) ;
53
53
54
54
// Mouseover to left
@@ -58,7 +58,7 @@ describe('Place Example', () => {
58
58
59
59
const leftOri = position ( left ) ;
60
60
const leftTip = position ( tooltip ) ;
61
- assert ( tooltip . innerText === 'This is a shared tooltip.\n ' ) ;
61
+ assert ( tooltip . innerText === 'This is a shared tooltip.' ) ;
62
62
assert ( leftTip . left < leftOri . left ) ;
63
63
64
64
// Mouseover to top
@@ -68,7 +68,7 @@ describe('Place Example', () => {
68
68
69
69
const topOri = position ( top ) ;
70
70
const topTip = position ( tooltip ) ;
71
- assert ( tooltip . innerText === 'This is a shared tooltip.\n ' ) ;
71
+ assert ( tooltip . innerText === 'This is a shared tooltip.' ) ;
72
72
assert ( topTip . top < topOri . top ) ;
73
73
} ) ;
74
74
} ) ;
@@ -83,7 +83,7 @@ describe('Place Example', () => {
83
83
84
84
const rightOri = position ( right ) ;
85
85
const rightTip = position ( rightTooltip ) ;
86
- assert ( rightTooltip . innerText === 'This is a right tooltip.\n ' ) ;
86
+ assert ( rightTooltip . innerText === 'This is a right tooltip.' ) ;
87
87
assert ( rightOri . left < rightTip . left ) ;
88
88
89
89
// Mouseover to bottom
@@ -94,7 +94,7 @@ describe('Place Example', () => {
94
94
95
95
const bottomOri = position ( bottom ) ;
96
96
const bottomTip = position ( bottomTooltip ) ;
97
- assert ( bottomTooltip . innerText === 'This is a bottom tooltip.\n ' ) ;
97
+ assert ( bottomTooltip . innerText === 'This is a bottom tooltip.' ) ;
98
98
assert ( bottomOri . top < bottomTip . top ) ;
99
99
100
100
// Mouseover to left
@@ -105,7 +105,7 @@ describe('Place Example', () => {
105
105
106
106
const leftOri = position ( left ) ;
107
107
const leftTip = position ( leftTooltip ) ;
108
- assert ( leftTooltip . innerText === 'This is a left tooltip.\n ' ) ;
108
+ assert ( leftTooltip . innerText === 'This is a left tooltip.' ) ;
109
109
assert ( leftTip . left < leftOri . left ) ;
110
110
111
111
// Mouseover to top
@@ -116,7 +116,7 @@ describe('Place Example', () => {
116
116
117
117
const topOri = position ( top ) ;
118
118
const topTip = position ( topTooltip ) ;
119
- assert ( topTooltip . innerText === 'This is a top tooltip.\n ' ) ;
119
+ assert ( topTooltip . innerText === 'This is a top tooltip.' ) ;
120
120
assert ( topTip . top < topOri . top ) ;
121
121
} ) ;
122
122
} ) ;
@@ -128,7 +128,7 @@ describe('Place Example', () => {
128
128
const origin = firstComponent ( tree , Origin . WrappedComponent , { className : 'target auto-basic' } ) . refs . wrapper ;
129
129
TestUtils . Simulate . mouseEnter ( origin ) ;
130
130
assert ( getStyleValue ( tooltip , 'visibility' ) === 'visible' ) ;
131
- assert ( tooltip . innerText === 'This is a shared tooltip.\n ' ) ;
131
+ assert ( tooltip . innerText === 'This is a shared tooltip.' ) ;
132
132
133
133
const tipPos = position ( tooltip ) ;
134
134
const oriPos = position ( origin ) ;
@@ -141,7 +141,7 @@ describe('Place Example', () => {
141
141
const array = firstComponent ( tree , Origin . WrappedComponent , { className : 'target auto-array' } ) . refs . wrapper ;
142
142
TestUtils . Simulate . mouseEnter ( array ) ;
143
143
assert ( getStyleValue ( tooltip , 'visibility' ) === 'visible' ) ;
144
- assert ( tooltip . innerText === 'This is a shared tooltip.\n ' ) ;
144
+ assert ( tooltip . innerText === 'This is a shared tooltip.' ) ;
145
145
146
146
const arrayTipPos = position ( tooltip ) ;
147
147
const arrayOriPos = position ( array ) ;
@@ -163,7 +163,7 @@ describe('Place Example', () => {
163
163
const more = firstComponent ( tree , Origin . WrappedComponent , { className : 'target auto-more' } ) . refs . wrapper ;
164
164
TestUtils . Simulate . mouseEnter ( more ) ;
165
165
assert ( getStyleValue ( tooltip , 'visibility' ) === 'visible' ) ;
166
- assert ( tooltip . innerText === 'This is a more tooltip.\n ' ) ;
166
+ assert ( tooltip . innerText === 'This is a more tooltip.' ) ;
167
167
168
168
const tipPos = position ( tooltip ) ;
169
169
const oriPos = position ( more ) ;
@@ -176,7 +176,7 @@ describe('Place Example', () => {
176
176
const top = firstComponent ( tree , Origin . WrappedComponent , { className : 'target auto-top' } ) . refs . wrapper ;
177
177
TestUtils . Simulate . mouseEnter ( top ) ;
178
178
assert ( getStyleValue ( tooltip , 'visibility' ) === 'visible' ) ;
179
- assert ( tooltip . innerText === 'This is a restricted tooltip.\n ' ) ;
179
+ assert ( tooltip . innerText === 'This is a restricted tooltip.' ) ;
180
180
181
181
const topTipPos = position ( tooltip ) ;
182
182
const topOriPos = position ( top ) ;
@@ -207,7 +207,7 @@ describe('Place Example', () => {
207
207
const disabled = firstComponent ( tree , Origin . WrappedComponent , { className : 'target auto-disabled' } ) . refs . wrapper ;
208
208
TestUtils . Simulate . mouseEnter ( disabled ) ;
209
209
assert ( getStyleValue ( tooltip , 'visibility' ) === 'visible' ) ;
210
- assert ( tooltip . innerText === 'This is a disabled tooltip.\n ' ) ;
210
+ assert ( tooltip . innerText === 'This is a disabled tooltip.' ) ;
211
211
212
212
const tipPos = position ( tooltip ) ;
213
213
const oriPos = position ( disabled ) ;
0 commit comments