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/sourcemap-sources/test.js

13 lines
340 B

export function test({ assert, preprocessed, js, css }) {
assert.notEqual(preprocessed.error, undefined, 'expected preprocessed.error');
const msg_expected_prefix = 'Transformation map 0 must have exactly one source file.';
assert.equal(
preprocessed.error.message.slice(0, msg_expected_prefix.length),
msg_expected_prefix
);
}