Commit f1074ad
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- test
- ts
5 files changed
+322
-140
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments