@@ -87,7 +87,7 @@ Rejected to value: <r>4</>
87
87
exports[`.resolves fails non-promise value "a" 1`] = `
88
88
<d>expect(</><r>received</><d>).</>resolves<d>.</>toBeDefined<d>()</>
89
89
90
- <b>Matcher error</>: <r>received</> value must be a promise
90
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
91
91
92
92
Received has type: string
93
93
Received has value: <r>"a"</>
@@ -96,7 +96,7 @@ Received has value: <r>"a"</>
96
96
exports[`.resolves fails non-promise value "a" synchronously 1`] = `
97
97
<d>expect(</><r>received</><d>).</>resolves<d>.</>toBeDefined<d>()</>
98
98
99
- <b>Matcher error</>: <r>received</> value must be a promise
99
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
100
100
101
101
Received has type: string
102
102
Received has value: <r>"a"</>
@@ -105,7 +105,7 @@ Received has value: <r>"a"</>
105
105
exports[`.resolves fails non-promise value [1] 1`] = `
106
106
<d>expect(</><r>received</><d>).</>resolves<d>.</>toBeDefined<d>()</>
107
107
108
- <b>Matcher error</>: <r>received</> value must be a promise
108
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
109
109
110
110
Received has type: array
111
111
Received has value: <r>[1]</>
@@ -114,7 +114,7 @@ Received has value: <r>[1]</>
114
114
exports[`.resolves fails non-promise value [1] synchronously 1`] = `
115
115
<d>expect(</><r>received</><d>).</>resolves<d>.</>toBeDefined<d>()</>
116
116
117
- <b>Matcher error</>: <r>received</> value must be a promise
117
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
118
118
119
119
Received has type: array
120
120
Received has value: <r>[1]</>
@@ -123,7 +123,7 @@ Received has value: <r>[1]</>
123
123
exports[`.resolves fails non-promise value [Function anonymous] 1`] = `
124
124
<d>expect(</><r>received</><d>).</>resolves<d>.</>toBeDefined<d>()</>
125
125
126
- <b>Matcher error</>: <r>received</> value must be a promise
126
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
127
127
128
128
Received has type: function
129
129
Received has value: <r>[Function anonymous]</>
@@ -132,7 +132,7 @@ Received has value: <r>[Function anonymous]</>
132
132
exports[`.resolves fails non-promise value [Function anonymous] synchronously 1`] = `
133
133
<d>expect(</><r>received</><d>).</>resolves<d>.</>toBeDefined<d>()</>
134
134
135
- <b>Matcher error</>: <r>received</> value must be a promise
135
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
136
136
137
137
Received has type: function
138
138
Received has value: <r>[Function anonymous]</>
@@ -141,7 +141,7 @@ Received has value: <r>[Function anonymous]</>
141
141
exports[`.resolves fails non-promise value {"a": 1} 1`] = `
142
142
<d>expect(</><r>received</><d>).</>resolves<d>.</>toBeDefined<d>()</>
143
143
144
- <b>Matcher error</>: <r>received</> value must be a promise
144
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
145
145
146
146
Received has type: object
147
147
Received has value: <r>{"a": 1}</>
@@ -150,7 +150,7 @@ Received has value: <r>{"a": 1}</>
150
150
exports[`.resolves fails non-promise value {"a": 1} synchronously 1`] = `
151
151
<d>expect(</><r>received</><d>).</>resolves<d>.</>toBeDefined<d>()</>
152
152
153
- <b>Matcher error</>: <r>received</> value must be a promise
153
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
154
154
155
155
Received has type: object
156
156
Received has value: <r>{"a": 1}</>
@@ -159,7 +159,7 @@ Received has value: <r>{"a": 1}</>
159
159
exports[`.resolves fails non-promise value 4 1`] = `
160
160
<d>expect(</><r>received</><d>).</>resolves<d>.</>not<d>.</>toBeDefined<d>()</>
161
161
162
- <b>Matcher error</>: <r>received</> value must be a promise
162
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
163
163
164
164
Received has type: number
165
165
Received has value: <r>4</>
@@ -168,7 +168,7 @@ Received has value: <r>4</>
168
168
exports[`.resolves fails non-promise value 4 synchronously 1`] = `
169
169
<d>expect(</><r>received</><d>).</>resolves<d>.</>not<d>.</>toBeDefined<d>()</>
170
170
171
- <b>Matcher error</>: <r>received</> value must be a promise
171
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
172
172
173
173
Received has type: number
174
174
Received has value: <r>4</>
@@ -177,23 +177,23 @@ Received has value: <r>4</>
177
177
exports[`.resolves fails non-promise value null 1`] = `
178
178
<d>expect(</><r>received</><d>).</>resolves<d>.</>not<d>.</>toBeDefined<d>()</>
179
179
180
- <b>Matcher error</>: <r>received</> value must be a promise
180
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
181
181
182
182
Received has value: <r>null</>
183
183
`;
184
184
185
185
exports[`.resolves fails non-promise value null synchronously 1`] = `
186
186
<d>expect(</><r>received</><d>).</>resolves<d>.</>not<d>.</>toBeDefined<d>()</>
187
187
188
- <b>Matcher error</>: <r>received</> value must be a promise
188
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
189
189
190
190
Received has value: <r>null</>
191
191
`;
192
192
193
193
exports[`.resolves fails non-promise value true 1`] = `
194
194
<d>expect(</><r>received</><d>).</>resolves<d>.</>not<d>.</>toBeDefined<d>()</>
195
195
196
- <b>Matcher error</>: <r>received</> value must be a promise
196
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
197
197
198
198
Received has type: boolean
199
199
Received has value: <r>true</>
@@ -202,7 +202,7 @@ Received has value: <r>true</>
202
202
exports[`.resolves fails non-promise value true synchronously 1`] = `
203
203
<d>expect(</><r>received</><d>).</>resolves<d>.</>not<d>.</>toBeDefined<d>()</>
204
204
205
- <b>Matcher error</>: <r>received</> value must be a promise
205
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
206
206
207
207
Received has type: boolean
208
208
Received has value: <r>true</>
@@ -211,15 +211,15 @@ Received has value: <r>true</>
211
211
exports[`.resolves fails non-promise value undefined 1`] = `
212
212
<d>expect(</><r>received</><d>).</>resolves<d>.</>not<d>.</>toBeDefined<d>()</>
213
213
214
- <b>Matcher error</>: <r>received</> value must be a promise
214
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
215
215
216
216
Received has value: <r>undefined</>
217
217
`;
218
218
219
219
exports[`.resolves fails non-promise value undefined synchronously 1`] = `
220
220
<d>expect(</><r>received</><d>).</>resolves<d>.</>not<d>.</>toBeDefined<d>()</>
221
221
222
- <b>Matcher error</>: <r>received</> value must be a promise
222
+ <b>Matcher error</>: <r>received</> value must be a promise or a function returning a promise
223
223
224
224
Received has value: <r>undefined</>
225
225
`;
0 commit comments