Skip to content

Commit c1dd765

Browse files
authored
Merge pull request #73 from apasel422/fix-tests
Fix tests
2 parents 4315fac + 1f372a9 commit c1dd765

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/parser.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,11 @@ export default class Parser {
381381
throw new ParseError(this.pos, 'ByteSequence does not contain a valid base64 string');
382382
}
383383

384-
return base64ToArrayBuffer(b64Content);
384+
try {
385+
return base64ToArrayBuffer(b64Content);
386+
} catch {
387+
throw new ParseError(this.pos, 'ByteSequence does not contain a valid base64 string');
388+
}
385389

386390
}
387391

test/httpwg-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ function makeSerializeTest(test) {
269269

270270
if (test.can_fail) {
271271
// Optional failure
272-
this.skip('can_fail was true');
272+
t.skip('can_fail was true');
273273
} else {
274274
throw e;
275275
}

0 commit comments

Comments
 (0)