You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/sourcemaps/samples/static-no-script/test.js

10 lines
268 B

const fs = require( 'fs' );
const path = require( 'path' );
export function test ({ assert, map }) {
assert.deepEqual( map.sources, [ 'input.html' ]);
assert.deepEqual( map.sourcesContent, [
fs.readFileSync( path.join( __dirname, 'input.html' ), 'utf-8' )
]);
}