Skip to content

Commit 99dfafa

Browse files
anna's suggestion
1 parent 5eefe9f commit 99dfafa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/mongo_logger.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,8 +1290,8 @@ describe('class MongoLogger', async function () {
12901290

12911291
context('when maxDocumentLength > 1', function () {
12921292
it('should round down maxDocLength to previous codepoint', function () {
1293-
const randomString = `random ${multiByteCodePoint}random random${multiByteCodePoint}${multiByteCodePoint}`;
12941293
const randomStringMinusACodePoint = `random ${multiByteCodePoint}random random${multiByteCodePoint}`;
1294+
const randomString = `${randomStringMinusACodePoint}${multiByteCodePoint}`;
12951295
expect(
12961296
stringifyWithMaxLen(randomString, randomString.length - 1, { relaxed: true })
12971297
).to.equal(`${randomStringMinusACodePoint}...`);

0 commit comments

Comments
 (0)