test: improve coverage

This commit is contained in:
Evan You
2019-09-24 16:35:01 -04:00
parent e67084e5a1
commit cae03f616d
8 changed files with 318 additions and 52 deletions

View File

@@ -60,6 +60,7 @@ export function advancePositionWithMutation(
}
export function assert(condition: boolean, msg?: string) {
/* istanbul ignore if */
if (!condition) {
throw new Error(msg || `unexpected compiler condition`)
}