Skip to content

Commit c9714f5

Browse files
committed
attempt to fix a pathing problem now that we are using relPath in getPartial...
introduced during #413
1 parent b8626c4 commit c9714f5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/list_item_hunter_tests.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,24 +151,28 @@
151151
var pattern1 = createFakeListPattern({
152152
"template": "{{#listItems.one}}{{> 00-test/00-foo.mustache }}{{/listItems.one}}",
153153
"extendedTemplate" : "{{#listItems.one}}{{> 00-test/00-foo.mustache }}{{/listItems.one}}",
154-
"key": "test-patternName1"
154+
"patternPartial": "test-patternName1",
155+
"relPath": "00-test/02-patternName1.mustache"
155156
});
156157

157158
var pattern2 = createFakeListPattern({
158159
"template": "{{#listItems.two}}{{> 00-test/00-bar.mustache }}{{/listItems.two}}",
159160
"extendedTemplate" : "{{#listItems.two}}{{> 00-test/00-bar.mustache }}{{/listItems.two}}",
160-
"key": "test-patternName2"
161+
"patternPartial": "test-patternName2",
162+
"relPath": "00-test/03-patternName2.mustache"
161163
});
162164

163165
var patternlab = createFakePatternLab({
164166
"patterns": [
165167
Pattern.create('00-test/00-foo.mustache', null, {
166168
"template": "{{ title }}",
167-
"extendedTemplate": "{{ title }}"
169+
"extendedTemplate": "{{ title }}",
170+
"relPath": "00-test/00-foo.mustache"
168171
}),
169172
Pattern.create('00-test/00-bar.mustache', null, {
170173
"template": "{{ title }}",
171-
"extendedTemplate": "{{ title }}"
174+
"extendedTemplate": "{{ title }}",
175+
"relPath": "00-test/00-bar.mustache"
172176
})
173177
]
174178
});

0 commit comments

Comments
 (0)