From 8cfc94c49ded9894270b130468a09a3d83914071 Mon Sep 17 00:00:00 2001 From: Aditi Khare Date: Thu, 25 Jan 2024 11:10:37 -0500 Subject: [PATCH] anna's suggestion --- test/unit/mongo_logger.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/mongo_logger.test.ts b/test/unit/mongo_logger.test.ts index f34e85c010..19343d0632 100644 --- a/test/unit/mongo_logger.test.ts +++ b/test/unit/mongo_logger.test.ts @@ -1270,8 +1270,8 @@ describe('class MongoLogger', function () { context('when maxDocumentLength > 1', function () { it('should round down maxDocLength to previous codepoint', function () { - const randomString = `random ${multiByteCodePoint}random random${multiByteCodePoint}${multiByteCodePoint}`; const randomStringMinusACodePoint = `random ${multiByteCodePoint}random random${multiByteCodePoint}`; + const randomString = `${randomStringMinusACodePoint}${multiByteCodePoint}`; expect( stringifyWithMaxLen(randomString, randomString.length - 1, { relaxed: true }) ).to.equal(`${randomStringMinusACodePoint}...`);