diff options
| author | caleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu> | 2022-03-23 00:38:26 -0400 |
|---|---|---|
| committer | caleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu> | 2022-03-23 00:38:26 -0400 |
| commit | efe16e1c1e7d4b0ea13c04b816d046ad21eeadb0 (patch) | |
| tree | 53de3eca82b676e453aa3e3a740608ba3fd116a1 /webAO/utils | |
| parent | 7c88c0bcca6e47cca4e2632df8ced778fa38c341 (diff) | |
Artifacts from testing
Diffstat (limited to 'webAO/utils')
| -rw-r--r-- | webAO/utils/__tests__/aoml.test.ts | 2 | ||||
| -rw-r--r-- | webAO/utils/aoml.ts | 1 |
2 files changed, 1 insertions, 2 deletions
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(',') |
