From c453ae5dd0a0d749c7c70b7ef8e3e51e25368aca Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 15 Dec 2016 12:45:29 -0500 Subject: [PATCH] increase patch coverage, again --- test/parse.js | 6 ++++++ 1 file changed, 6 insertions(+) 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/ ); + }); });