From efe16e1c1e7d4b0ea13c04b816d046ad21eeadb0 Mon Sep 17 00:00:00 2001 From: "caleb.mabry.15@cnu.edu" Date: Wed, 23 Mar 2022 00:38:26 -0400 Subject: Artifacts from testing --- webAO/utils/__tests__/aoml.test.ts | 2 +- webAO/utils/aoml.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'webAO/utils') diff --git a/webAO/utils/__tests__/aoml.test.ts b/webAO/utils/__tests__/aoml.test.ts index fa8ade4..90967d7 100644 --- a/webAO/utils/__tests__/aoml.test.ts +++ b/webAO/utils/__tests__/aoml.test.ts @@ -99,7 +99,7 @@ mockRequest.mockReturnValue(Promise.resolve(networkRequest)) const config = mlConfig('localhost') const actual = await config.applyMarkdown(`~NO[]~!`, `white`) - const expected = `]` + const expected = `` expect(actual[4].innerHTML).toBe(expected) }) it('Should remove a closing letter if remove = 1', async () => { diff --git a/webAO/utils/aoml.ts b/webAO/utils/aoml.ts index fb26db8..da66d0c 100644 --- a/webAO/utils/aoml.ts +++ b/webAO/utils/aoml.ts @@ -69,7 +69,6 @@ const mlConfig = (AO_HOST) => { let currentIdentifier = identifiers.get(letter) const currentClosingLetter = closingStack[closingStack.length-1] const keepChar = Number(currentIdentifier?.remove) === 0 - console.log(currentClosingLetter, letter, keepChar) if (startIdentifiers.has(letter)) { const color = identifiers.get(letter).color.split(',') -- cgit