Skip to content

Commit a9105b7

Browse files
committed
Merge branch 'mini' into browser
2 parents a2853d2 + e2b2199 commit a9105b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/parserTests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const tests: Test[] = require('../../test/parserTests.json');
2121
describe('Parser tests', () => {
2222
for (const {desc, wikitext, print, render} of tests) {
2323
if (
24-
wikitext && (print || render)
24+
wikitext && (print || /* istanbul ignore next */ render)
2525
&& !wikitext.includes('|]]')
2626
) {
2727
it(desc, () => {
@@ -31,7 +31,7 @@ describe('Parser tests', () => {
3131
if (print) {
3232
assert.deepStrictEqual(split(root.print()), split(print));
3333
}
34-
} catch (e) {
34+
} catch (e) /* istanbul ignore next */ {
3535
if (e instanceof assert.AssertionError) {
3636
e.cause = {message: `\n${wikitext}`};
3737
}

test/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('API tests', () => {
2828
if (code.includes('Parser.config = ')) {
2929
Parser.config = require('../../config/default');
3030
}
31-
} catch (e) {
31+
} catch (e) /* istanbul ignore next */ {
3232
if (e instanceof assert.AssertionError) {
3333
e.cause = {message: lines[Number(/<anonymous>:(\d+)/u.exec(e.stack!)![1]) - 1]};
3434
}

0 commit comments

Comments
 (0)