increase patch coverage

pull/199/head
Rich Harris 8 years ago
parent a9262f45ea
commit c09a02caf2

@ -33,4 +33,17 @@ describe( 'parse', () => {
} }
}); });
}); });
it( 'handles errors with options.onerror', () => {
let errored = false;
svelte.compile( `<h1>unclosed`, {
onerror ( err ) {
errored = true;
assert.equal( err.message, `Unexpected end of input` );
}
});
assert.ok( errored );
});
}); });

Loading…
Cancel
Save