pixsy/node_modules/pug-load/test/__snapshots__/index.test.js.snap

150 lines
4.1 KiB
Plaintext
Raw Normal View History

2017-12-22 17:22:08 +00:00
exports[`test pug-load 1`] = `
Object {
"filename": "<dirname>/foo.pug",
"line": 0,
"nodes": Array [
Object {
"column": 1,
"file": Object {
"ast": Object {
"filename": "<dirname>/bar.pug",
"line": 0,
"nodes": Array [
Object {
"column": 1,
"filename": "<dirname>/bar.pug",
"line": 1,
"mode": "replace",
"name": "bing",
"nodes": Array [],
"type": "NamedBlock",
},
],
"type": "Block",
},
"column": 9,
"filename": "<dirname>/foo.pug",
"fullPath": "<dirname>/bar.pug",
"line": 1,
"path": "bar.pug",
"str": "block bing
",
"type": "FileReference",
},
"filename": "<dirname>/foo.pug",
"line": 1,
"type": "Extends",
},
Object {
"column": 1,
"filename": "<dirname>/foo.pug",
"line": 3,
"mode": "replace",
"name": "bing",
"nodes": Array [
Object {
"block": Object {
"filename": "<dirname>/foo.pug",
"line": 4,
"nodes": Array [],
"type": "Block",
},
"column": 3,
"file": Object {
"ast": Object {
"filename": "<dirname>/bing.pug",
"line": 0,
"nodes": Array [
Object {
"attributeBlocks": Array [],
"attrs": Array [
Object {
"column": 1,
"filename": "<basedir>/packages/pug-load/test/bing.pug",
"line": 1,
"mustEscape": false,
"name": "class",
"val": "\'bing\'",
},
],
"block": Object {
"filename": "<dirname>/bing.pug",
"line": 1,
"nodes": Array [
Object {
"column": 7,
"filename": "<dirname>/bing.pug",
"line": 1,
"type": "Text",
"val": "bong",
},
],
"type": "Block",
},
"column": 1,
"filename": "<dirname>/bing.pug",
"isInline": false,
"line": 1,
"name": "div",
"selfClosing": false,
"type": "Tag",
},
],
"type": "Block",
},
"column": 11,
"filename": "<dirname>/foo.pug",
"fullPath": "<dirname>/bing.pug",
"line": 4,
"path": "bing.pug",
"str": ".bing bong
",
"type": "FileReference",
},
"filename": "<dirname>/foo.pug",
"line": 4,
"type": "Include",
},
Object {
"attributeBlocks": Array [],
"attrs": Array [],
"block": Object {
"filename": "<dirname>/foo.pug",
"line": 5,
"nodes": Array [
Object {
"column": 5,
"file": Object {
"column": 13,
"filename": "<dirname>/foo.pug",
"fullPath": "<dirname>/script.js",
"line": 6,
"path": "script.js",
"str": "document.write(\'hello world!\');
",
"type": "FileReference",
},
"filename": "<dirname>/foo.pug",
"filters": Array [],
"line": 6,
"type": "RawInclude",
},
],
"type": "Block",
},
"column": 3,
"filename": "<dirname>/foo.pug",
"isInline": false,
"line": 5,
"name": "script",
"selfClosing": false,
"type": "Tag",
},
],
"type": "NamedBlock",
},
],
"type": "Block",
}
`;