Skip to content

Commit

Permalink
anna's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
aditi-khare-mongoDB committed Jan 25, 2024
1 parent f507a46 commit 8cfc94c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/mongo_logger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}...`);
Expand Down

0 comments on commit 8cfc94c

Please sign in to comment.