0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 01:11:24 +01:00

use compileOptions when showing failing code

This commit is contained in:
Rich Harris 2017-02-28 13:07:23 -05:00
parent d287cc57d8
commit 1655249d7a

View File

@ -44,7 +44,7 @@ describe( 'generate', () => {
try {
const source = fs.readFileSync( `test/generator/${dir}/main.html`, 'utf-8' );
compiled = svelte.compile( source );
compiled = svelte.compile( source, compileOptions );
} catch ( err ) {
if ( config.compileError ) {
config.compileError( err );