File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ describe("errors", () => {
227
227
228
228
const ms = new MeiliSearch ( { host : "https://politi.dk/en/" } ) ;
229
229
const error = await assert . rejects ( ms . health ( ) , MeiliSearchRequestError ) ;
230
+ assert . typeOf ( error . message , "string" ) ;
230
231
assert . deepEqual ( error . cause , simulatedError ) ;
231
232
} ) ;
232
233
@@ -245,7 +246,9 @@ describe("errors", () => {
245
246
246
247
const ms = new MeiliSearch ( { host : "https://polisen.se/en/" } ) ;
247
248
const error = await assert . rejects ( ms . health ( ) , MeiliSearchApiError ) ;
249
+ assert . typeOf ( error . message , "string" ) ;
248
250
assert . deepEqual ( error . cause , simulatedCause ) ;
251
+ assert . instanceOf ( error . response , Response ) ;
249
252
} ) ;
250
253
251
254
// MeiliSearchTaskTimeOutError is tested by tasks-and-batches tests
You can’t perform that action at this time.
0 commit comments