index.test.js.snap
4.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
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",
}
`;