You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tap.test('parameter hunter finds and extends templates with mixed parameter and global data',function(test){
77
+
varpattern=get('test-sticky-comment',patternlab);
78
+
test.equals(util.sanitized(pattern.patternPartialCode),util.sanitized(`<h1>Bar</h1><p>A life is like a garden. Perfect moments can be had, but not preserved, except in memory.</p>`));
test.equals(pattern.patternPartialCode.indexOf('00-test-00-foo.rendered.html')>-1,true,'data link should be replaced properly');
65
-
test.end();
82
+
tap.test('parameter hunter parses parameters with unquoted keys and unquoted values',function(test){
83
+
varpattern=get('test-sticky-comment',patternlab);
84
+
test.equals(util.sanitized(pattern.patternPartialCode),util.sanitized(`<h1>Bar</h1><p>A life is like a garden. Perfect moments can be had, but not preserved, except in memory.</p>`));
85
+
test.end();
86
+
});
87
+
88
+
89
+
90
+
////////////// FAILING /////////////////
91
+
92
+
tap.test('parameter hunter finds and extends templates with verbose partials',function(test){
test.equals(util.sanitized(pattern.patternPartialCode),util.sanitized(`<h1></h1><p>A life is like a garden. Perfect moments can be had, but not preserved, except in memory.</p>`));
95
+
test.end();
96
+
});
97
+
98
+
tap.test('parameter hunter finds and extends templates with fully-pathed partials',function(test){
test.equals(util.sanitized(pattern.patternPartialCode),util.sanitized(`<h1></h1><p>A life is like a garden. Perfect moments can be had, but not preserved, except in memory.</p>`));
101
+
test.end();
102
+
});
103
+
104
+
66
105
}
67
106
};
68
107
@@ -74,5 +113,11 @@ tap.test('buildPatterns - should replace data link even when pattern parameter p
test.equals(util.sanitized(testPattern.extendedTemplate),util.sanitized('<h1>Bar</h1><p>A life is like a garden. Perfect moments can be had, but not preserved, except in memory.</p>'));
115
-
test.end();
116
-
});
117
-
});
118
-
});
119
-
120
-
tap.test('parameter hunter finds and extends templates with verbose partials',function(test){
42
+
tap.only('parameter hunter finds and extends templates with verbose partials',function(test){
121
43
//arrange
122
44
constpl=util.fakePatternLab(testPatternsPath);
123
45
@@ -136,8 +58,8 @@ tap.test('parameter hunter finds and extends templates with verbose partials', f
136
58
//assert
137
59
test.equals(util.sanitized(testPattern.extendedTemplate),util.sanitized('<h1></h1><p>A life is like a garden. Perfect moments can be had, but not preserved, except in memory.</p>'));
138
60
test.end();
139
-
});
140
-
});
61
+
}).catch(test.threw);
62
+
}).catch(test.threw);
141
63
});
142
64
143
65
tap.test('parameter hunter finds and extends templates with fully-pathed partials',function(test){
0 commit comments