mirror of https://github.com/sveltejs/svelte
parent
47ffc055fb
commit
b739bdbe19
@ -1,12 +1,12 @@
|
||||
export function test({ assert, preprocessed, js, css }) {
|
||||
|
||||
const msg_expected = 'Transformation map 0 must have exactly one source file.';
|
||||
assert.notEqual(preprocessed.error, undefined, 'expected preprocessed.error');
|
||||
|
||||
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.length),
|
||||
msg_expected
|
||||
preprocessed.error.message.slice(0, msg_expected_prefix.length),
|
||||
msg_expected_prefix
|
||||
);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in new issue