pull/4917/head
pushkine 5 years ago
parent 6f61b5d70d
commit fa363a5b6c

@ -1,6 +1,6 @@
import { loadConfig, update_expected } from "../helpers";
export function sanitize(compiled){
export function sanitize(compiled) {
return compiled.js.code.replace(/generated by Svelte v\d+\.\d+\.\d+(-\w+\.\d+)?/, 'generated by Svelte vX.Y.Z');
}

@ -1,16 +1,16 @@
import { update_expected } from "../update";
export function sanitize_ast(compiled){
export function sanitize_ast(compiled) {
return compiled.ast;
}
export function sanitize_error(e){
export function sanitize_error(e) {
return {
code: e.code,
message: e.message,
start: e.start,
pos: e.pos
}
};
}
// this file will replace all the expected.js files with their _actual

Loading…
Cancel
Save