Skip to content
Snippets Groups Projects
Commit 9c43ac2a authored by Rhys Arkins's avatar Rhys Arkins
Browse files

test: fix coverage

parent fc48bdf7
No related branches found
No related tags found
No related merge requests found
...@@ -113,6 +113,7 @@ function processChars(acc: Token[], token: Token): Token[] { ...@@ -113,6 +113,7 @@ function processChars(acc: Token[], token: Token): Token[] {
const tokenType = token.type; const tokenType = token.type;
const prevToken: Token = acc[acc.length - 1]; const prevToken: Token = acc[acc.length - 1];
if ([TokenType.Chars, TokenType.EscapedChar].includes(tokenType)) { if ([TokenType.Chars, TokenType.EscapedChar].includes(tokenType)) {
// istanbul ignore if
if (prevToken?.type === TokenType.String) { if (prevToken?.type === TokenType.String) {
prevToken.value += token.value; prevToken.value += token.value;
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment