@@ -115,13 +115,13 @@ describe('.toHaveValue', () => {
115
115
}
116
116
117
117
expect ( errorMessage ) . toMatchInlineSnapshot ( `
118
- " <dim>expect(</><red>element</><dim>).toHaveValue(</><green>something else</><dim>)</>
118
+ <dim>expect(</><red>element</><dim>).toHaveValue(</><green>something else</><dim>)</>
119
119
120
- Expected the element to have value:
121
- <green> something else</>
122
- Received:
123
- <red> foo</>"
124
- `)
120
+ Expected the element to have value:
121
+ <green> something else</>
122
+ Received:
123
+ <red> foo</>
124
+ ` )
125
125
} )
126
126
127
127
test ( 'throws with type information when the expected text input value has loose equality with received value' , ( ) => {
@@ -135,13 +135,13 @@ describe('.toHaveValue', () => {
135
135
}
136
136
137
137
expect ( errorMessage ) . toMatchInlineSnapshot ( `
138
- " <dim>expect(</><red>element</><dim>).toHaveValue(</><green>8</><dim>)</>
138
+ <dim>expect(</><red>element</><dim>).toHaveValue(</><green>8</><dim>)</>
139
139
140
- Expected the element to have value:
141
- <green> 8 (number)</>
142
- Received:
143
- <red> 8 (string)</>"
144
- `)
140
+ Expected the element to have value:
141
+ <green> 8 (number)</>
142
+ Received:
143
+ <red> 8 (string)</>
144
+ ` )
145
145
} )
146
146
147
147
test ( 'throws when using not but the expected input value does match' , ( ) => {
@@ -155,13 +155,13 @@ describe('.toHaveValue', () => {
155
155
errorMessage = error . message
156
156
}
157
157
expect ( errorMessage ) . toMatchInlineSnapshot ( `
158
- " <dim>expect(</><red>element</><dim>).not.toHaveValue(</><green>foo</><dim>)</>
158
+ <dim>expect(</><red>element</><dim>).not.toHaveValue(</><green>foo</><dim>)</>
159
159
160
- Expected the element not to have value:
161
- <green> foo</>
162
- Received:
163
- <red> foo</>"
164
- `)
160
+ Expected the element not to have value:
161
+ <green> foo</>
162
+ Received:
163
+ <red> foo</>
164
+ ` )
165
165
} )
166
166
167
167
test ( 'throws when the form has no a value but a value is expected' , ( ) => {
@@ -175,13 +175,13 @@ describe('.toHaveValue', () => {
175
175
errorMessage = error . message
176
176
}
177
177
expect ( errorMessage ) . toMatchInlineSnapshot ( `
178
- " <dim>expect(</><red>element</><dim>).toHaveValue(</><green>expected</><dim>)</>
178
+ <dim>expect(</><red>element</><dim>).toHaveValue(</><green>expected</><dim>)</>
179
179
180
- Expected the element to have value:
181
- <green> (any)</>
182
- Received:
183
- "
184
- `)
180
+ Expected the element to have value:
181
+ <green> (any)</>
182
+ Received:
183
+
184
+ ` )
185
185
} )
186
186
187
187
test ( 'throws when the form has a value but none is expected' , ( ) => {
@@ -195,12 +195,12 @@ describe('.toHaveValue', () => {
195
195
errorMessage = error . message
196
196
}
197
197
expect ( errorMessage ) . toMatchInlineSnapshot ( `
198
- " <dim>expect(</><red>element</><dim>).not.toHaveValue(</><green>expected</><dim>)</>
198
+ <dim>expect(</><red>element</><dim>).not.toHaveValue(</><green>expected</><dim>)</>
199
199
200
- Expected the element not to have value:
201
- <green> (any)</>
202
- Received:
203
- <red> foo</>"
204
- `)
200
+ Expected the element not to have value:
201
+ <green> (any)</>
202
+ Received:
203
+ <red> foo</>
204
+ ` )
205
205
} )
206
206
} )
0 commit comments