mirror of https://github.com/sveltejs/svelte
parent
df1870df8b
commit
c98e1f49d3
@ -1,23 +1,28 @@
|
||||
{
|
||||
"html": {
|
||||
"start": 0,
|
||||
"end": 15,
|
||||
"type": "Fragment",
|
||||
"children": [{
|
||||
"attributes": [{
|
||||
"end": 14,
|
||||
"name": "html",
|
||||
"start": 10,
|
||||
"type": "Attribute",
|
||||
"value": true
|
||||
}],
|
||||
"children": [],
|
||||
"end": 15,
|
||||
"name": "!doctype",
|
||||
"start": 0,
|
||||
"type": "Element"
|
||||
}]
|
||||
},
|
||||
"css": null,
|
||||
"js": null
|
||||
}
|
||||
"hash": 825536165,
|
||||
"html": {
|
||||
"start": 0,
|
||||
"end": 15,
|
||||
"type": "Fragment",
|
||||
"children": [
|
||||
{
|
||||
"start": 0,
|
||||
"end": 15,
|
||||
"type": "Element",
|
||||
"name": "!doctype",
|
||||
"attributes": [
|
||||
{
|
||||
"start": 10,
|
||||
"end": 14,
|
||||
"type": "Attribute",
|
||||
"name": "html",
|
||||
"value": true
|
||||
}
|
||||
],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
"css": null,
|
||||
"js": null
|
||||
}
|
@ -1,14 +1,17 @@
|
||||
{
|
||||
"html": {
|
||||
"start": 0,
|
||||
"end": 9,
|
||||
"type": "Fragment",
|
||||
"children": [
|
||||
{
|
||||
"start": 0,
|
||||
"end": 9,
|
||||
"type": "YieldTag"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
"hash": 3659433152,
|
||||
"html": {
|
||||
"start": 0,
|
||||
"end": 9,
|
||||
"type": "Fragment",
|
||||
"children": [
|
||||
{
|
||||
"start": 0,
|
||||
"end": 9,
|
||||
"type": "YieldTag"
|
||||
}
|
||||
]
|
||||
},
|
||||
"css": null,
|
||||
"js": null
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
// this file will replace all the expected.js and expected-bundle.js files with
|
||||
// their _actual equivalents. Only use it when you're sure that you haven't
|
||||
// broken anything!
|
||||
const fs = require("fs");
|
||||
const glob = require("glob");
|
||||
|
||||
glob.sync("samples/*/_actual.json", { cwd: __dirname }).forEach(file => {
|
||||
const actual = fs.readFileSync(`${__dirname}/${file}`, "utf-8");
|
||||
fs.writeFileSync(
|
||||
`${__dirname}/${file.replace("_actual", "output")}`,
|
||||
actual
|
||||
);
|
||||
});
|
Loading…
Reference in new issue