@@ -311,8 +311,7 @@ const commonArgs = [
311311 assert . strictEqual ( status , 1 ) ;
312312 assert . match ( stderr , / E R R _ I N V A L I D _ A R G _ T Y P E / ) ;
313313 assert . match ( stderr , / l o a d e r - r e s o l v e - b a d - n e x t - s p e c i f i e r \. m j s / ) ;
314- assert . match ( stderr , / ' r e s o l v e ' / ) ;
315- assert . match ( stderr , / n e x t R e s o l v e \( s p e c i f i e r \) / ) ;
314+ assert . match ( stderr , / ' r e s o l v e ' h o o k ' s n e x t R e s o l v e \( \) s p e c i f i e r / ) ;
316315}
317316
318317{ // Verify error thrown when invalid `context` argument passed to `nextResolve`
@@ -330,8 +329,7 @@ const commonArgs = [
330329
331330 assert . match ( stderr , / E R R _ I N V A L I D _ A R G _ T Y P E / ) ;
332331 assert . match ( stderr , / l o a d e r - r e s o l v e - b a d - n e x t - c o n t e x t \. m j s / ) ;
333- assert . match ( stderr , / ' r e s o l v e ' / ) ;
334- assert . match ( stderr , / n e x t R e s o l v e \( , c o n t e x t \) / ) ;
332+ assert . match ( stderr , / ' r e s o l v e ' h o o k ' s n e x t R e s o l v e \( \) c o n t e x t / ) ;
335333 assert . strictEqual ( status , 1 ) ;
336334}
337335
@@ -350,8 +348,7 @@ const commonArgs = [
350348
351349 assert . match ( stderr , / E R R _ I N V A L I D _ A R G _ T Y P E / ) ;
352350 assert . match ( stderr , / l o a d e r - l o a d - b a d - n e x t - u r l \. m j s / ) ;
353- assert . match ( stderr , / ' l o a d ' / ) ;
354- assert . match ( stderr , / n e x t L o a d \( u r l \) / ) ;
351+ assert . match ( stderr , / ' l o a d ' h o o k ' s n e x t L o a d \( \) u r l / ) ;
355352 assert . strictEqual ( status , 1 ) ;
356353}
357354
@@ -370,8 +367,7 @@ const commonArgs = [
370367
371368 assert . match ( stderr , / E R R _ I N V A L I D _ A R G _ V A L U E / ) ;
372369 assert . match ( stderr , / l o a d e r - l o a d - i m p e r s o n a t i n g - n e x t - u r l \. m j s / ) ;
373- assert . match ( stderr , / ' l o a d ' / ) ;
374- assert . match ( stderr , / n e x t L o a d \( u r l \) / ) ;
370+ assert . match ( stderr , / ' l o a d ' h o o k ' s n e x t L o a d \( \) u r l / ) ;
375371 assert . strictEqual ( status , 1 ) ;
376372}
377373
@@ -390,7 +386,6 @@ const commonArgs = [
390386
391387 assert . match ( stderr , / E R R _ I N V A L I D _ A R G _ T Y P E / ) ;
392388 assert . match ( stderr , / l o a d e r - l o a d - b a d - n e x t - c o n t e x t \. m j s / ) ;
393- assert . match ( stderr , / ' l o a d ' / ) ;
394- assert . match ( stderr , / n e x t L o a d \( , c o n t e x t \) / ) ;
389+ assert . match ( stderr , / ' l o a d ' h o o k ' s n e x t L o a d \( \) c o n t e x t / ) ;
395390 assert . strictEqual ( status , 1 ) ;
396391}
0 commit comments