Skip to content

Commit f1074ad

Browse files
committed
Restore test coverage for “x-parser.js”.
In a prior change set, we changed our `Map` error mappings to `switch` error mappings so that our code coverage tests would ensure that we are able to prove that each error is possible to be shown — otherwise, why keep them. This change set was kept separate since it’s all about coverage. Note that some of the regular expressions have changed — nearly all of that is due to rewriting like `\s\n` as just `\s` since `\n` is one of the characters matched by the `\s` set.
1 parent 4334db0 commit f1074ad

File tree

5 files changed

+322
-140
lines changed

5 files changed

+322
-140
lines changed

test/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import '../x-template.js';
77

88
// Set a high bar for code coverage!
99
coverage(new URL('../x-element.js', import.meta.url).href, 100);
10-
coverage(new URL('../x-parser.js', import.meta.url).href, 97); // TODO: Get back to 100%!
10+
coverage(new URL('../x-parser.js', import.meta.url).href, 100);
1111
coverage(new URL('../x-template.js', import.meta.url).href, 100);
1212

1313
test('./test-parser.html');

0 commit comments

Comments
 (0)