@@ -10,7 +10,7 @@ import type { Duplex } from 'stream';
1010import { PassThrough } from 'stream' ;
1111import type { StubbedInstance } from 'ts-sinon' ;
1212import { stubInterface } from 'ts-sinon' ;
13- import { promisify } from 'util' ;
13+ import { inspect , promisify } from 'util' ;
1414import {
1515 expect ,
1616 fakeTTYProps ,
@@ -547,13 +547,11 @@ describe('MongoshNodeRepl', function () {
547547 input . write ( 'history()\n' ) ;
548548 await waitEval ( bus ) ;
549549 expect ( output ) . includes (
550- formatOutput (
551- {
552- value : getAllHistoryItems ( )
553- . slice ( 1 , getAllHistoryItems ( ) . length )
554- . reverse ( ) ,
555- } ,
556- { colors : true , maxArrayLength : Infinity }
550+ inspect (
551+ getAllHistoryItems ( )
552+ . slice ( 1 , getAllHistoryItems ( ) . length )
553+ . reverse ( ) ,
554+ { maxArrayLength : Infinity }
557555 )
558556 ) ;
559557 } ) ;
@@ -564,12 +562,9 @@ describe('MongoshNodeRepl', function () {
564562 await waitEval ( bus ) ;
565563 const history = getAllHistoryItems ( ) . slice ( 1 ) . reverse ( ) ;
566564 expect ( output ) . includes (
567- formatOutput (
568- {
569- value : history . slice ( history . length - 10 ) . reverse ( ) ,
570- } ,
571- { colors : false , maxArrayLength : Infinity }
572- )
565+ inspect ( history . slice ( history . length - 10 ) . reverse ( ) , {
566+ maxArrayLength : Infinity ,
567+ } )
573568 ) ;
574569 } ) ;
575570 } ) ;
0 commit comments