@@ -137,7 +137,7 @@ assert.throws(() => thrower(TypeError));
137137 } catch ( e ) {
138138 threw = true ;
139139 assert . ok ( e instanceof a . AssertionError ) ;
140- assert . ok ( ! e . stack . includes ( 'at Function.doesNotThrow' ) ) ;
140+ assert . ok ( ! common . includes ( e . stack , 'at Function.doesNotThrow' ) ) ;
141141 }
142142 assert . ok ( threw , 'a.doesNotThrow is not catching type matching errors' ) ;
143143}
@@ -251,7 +251,7 @@ a.throws(() => thrower(TypeError), (err) => {
251251 } catch ( e ) {
252252 threw = true ;
253253 assert . ok ( e instanceof a . AssertionError ) ;
254- assert . ok ( ! e . stack . includes ( 'at Function.throws' ) ) ;
254+ assert . ok ( ! common . includes ( e . stack , 'at Function.throws' ) ) ;
255255 }
256256 assert . ok ( threw ) ;
257257}
@@ -341,13 +341,13 @@ try {
341341 } , TypeError , rangeError ) ;
342342 } catch ( e ) {
343343 threw = true ;
344- assert . ok ( e . message . includes ( rangeError . message ) ) ;
344+ assert . ok ( common . includes ( e . message , rangeError . message ) ) ;
345345 assert . ok ( e instanceof assert . AssertionError ) ;
346346 // [browserify]
347347 // This fails because `doesNotThrow` appears in the stack trace.
348348 // I'm not quite sure why that's an issue if the error message is set
349349 // and the above tests pass so commenting out for now.
350- // assert.ok(!e.stack. includes('doesNotThrow'), e.stack);
350+ // assert.ok(!common. includes(e.stack, 'doesNotThrow'), e.stack);
351351 }
352352 assert . ok ( threw ) ;
353353}
0 commit comments