diff --git a/test/parse.js b/test/parse.js index a4eb7cd133..dc4d8f2e6a 100644 --- a/test/parse.js +++ b/test/parse.js @@ -46,4 +46,10 @@ describe( 'parse', () => { assert.ok( errored ); }); + + it( 'throws without options.onerror', () => { + assert.throws( () => { + svelte.compile( `

unclosed` ); + }, /Unexpected end of input/ ); + }); });