Skip to content

Commit 66c4845

Browse files
committed
Use tap instead of tape
1 parent f115aa9 commit 66c4845

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

test/engine_mustache_tests.js

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22
/*eslint-disable no-shadow*/
33

4-
var test = require('tape');
4+
var tap = require('tap');
55
var path = require('path');
66
var pa = require('../core/lib/pattern_assembler');
77
var Pattern = require('../core/lib/object_factory').Pattern;
@@ -11,9 +11,10 @@ var eol = require('os').EOL;
1111
// don't run these tests unless mustache is installed
1212
var engineLoader = require('../core/lib/pattern_engines');
1313
if (!engineLoader.mustache) {
14-
test.only('Mustache engine not installed, skipping tests.', function (test) {
14+
tap.test('Mustache engine not installed, skipping tests.', function (test) {
1515
test.end();
1616
});
17+
return;
1718
}
1819

1920
// fake pattern lab constructor:
@@ -121,27 +122,27 @@ function testFindPartialsWithPatternParameters(test, partialTests) {
121122
}
122123

123124

124-
test('find_pattern_partials finds one simple partial', function (test) {
125+
tap.test('find_pattern_partials finds one simple partial', function (test) {
125126
testFindPartials(test, [
126127
"{{> molecules-comment-header}}"
127128
]);
128129
});
129130

130-
test('find_pattern_partials finds simple partials under stressed circumstances', function (test) {
131+
tap.test('find_pattern_partials finds simple partials under stressed circumstances', function (test) {
131132
testFindPartials(test, [
132133
"{{>molecules-comment-header}}",
133134
"{{> " + eol + " molecules-comment-header" + eol + "}}",
134135
"{{> molecules-weird-spacing }}"
135136
]);
136137
});
137138

138-
test('find_pattern_partials finds one simple verbose partial', function (test) {
139+
tap.test('find_pattern_partials finds one simple verbose partial', function (test) {
139140
testFindPartials(test, [
140141
'{{> 00-atoms/00-global/06-test }}'
141142
]);
142143
});
143144

144-
test('find_pattern_partials finds partials with parameters', function (test) {
145+
tap.test('find_pattern_partials finds partials with parameters', function (test) {
145146
testFindPartials(test, [
146147
"{{> molecules-single-comment(description: true) }}",
147148
"{{> molecules-single-comment(description: 42) }}",
@@ -153,55 +154,55 @@ test('find_pattern_partials finds partials with parameters', function (test) {
153154
]);
154155
});
155156

156-
test('find_pattern_partials finds simple partials with style modifiers', function (test) {
157+
tap.test('find_pattern_partials finds simple partials with style modifiers', function (test) {
157158
testFindPartials(test, [
158159
'{{> molecules-single-comment:foo }}',
159160
'{{> molecules-single-comment:foo|bar }}'
160161
]);
161162
});
162163

163-
test('find_pattern_partials finds mixed partials', function (test) {
164+
tap.test('find_pattern_partials finds mixed partials', function (test) {
164165
testFindPartials(test, [
165166
'{{> molecules-single-comment:foo(description: "test", anotherThing: true) }}',
166167
'{{> molecules-single-comment:foo|bar(description: true) }}'
167168
]);
168169
});
169170

170-
test('find_pattern_partials finds one simple partial with styleModifier', function (test) {
171+
tap.test('find_pattern_partials finds one simple partial with styleModifier', function (test) {
171172
testFindPartialsWithStyleModifiers(test, [
172173
"{{> molecules-comment-header:test}}"
173174
]);
174175
});
175176

176-
test('find_pattern_partials finds partial with many styleModifiers', function (test) {
177+
tap.test('find_pattern_partials finds partial with many styleModifiers', function (test) {
177178
testFindPartialsWithStyleModifiers(test, [
178179
"{{> molecules-comment-header:test|test2|test3}}"
179180
]);
180181
});
181182

182-
test('find_pattern_partials finds partials with differing styleModifiers', function (test) {
183+
tap.test('find_pattern_partials finds partials with differing styleModifiers', function (test) {
183184
testFindPartialsWithStyleModifiers(test, [
184185
"{{> molecules-comment-header:test|test2|test3}}",
185186
"{{> molecules-comment-header:foo-1}}",
186187
"{{> molecules-comment-header:bar_1}}"
187188
]);
188189
});
189190

190-
test('find_pattern_partials finds partials with styleModifiers when parameters present', function (test) {
191+
tap.test('find_pattern_partials finds partials with styleModifiers when parameters present', function (test) {
191192
testFindPartialsWithStyleModifiers(test, [
192193
"{{> molecules-comment-header:test|test2|test3(description: true)}}",
193194
"{{> molecules-comment-header:foo-1(description: 'foo')}}",
194195
"{{> molecules-comment-header:bar_1(descrition: 'bar', anotherThing: 10102010) }}"
195196
]);
196197
});
197198

198-
test('find_pattern_partials_with_parameters finds one simple partial with parameters', function (test) {
199+
tap.test('find_pattern_partials_with_parameters finds one simple partial with parameters', function (test) {
199200
testFindPartialsWithPatternParameters(test, [
200201
"{{> molecules-comment-header(description: 'test')}}"
201202
]);
202203
});
203204

204-
test('find_pattern_partials_with_parameters finds partials with parameters', function (test) {
205+
tap.test('find_pattern_partials_with_parameters finds partials with parameters', function (test) {
205206
testFindPartialsWithPatternParameters(test, [
206207
"{{> molecules-single-comment(description: true) }}",
207208
"{{> molecules-single-comment(description: 42) }}",
@@ -213,7 +214,7 @@ test('find_pattern_partials_with_parameters finds partials with parameters', fun
213214
]);
214215
});
215216

216-
test('find_pattern_partials finds partials with parameters when styleModifiers present', function (test) {
217+
tap.test('find_pattern_partials finds partials with parameters when styleModifiers present', function (test) {
217218
testFindPartialsWithPatternParameters(test, [
218219
"{{> molecules-comment-header:test|test2|test3(description: true)}}",
219220
"{{> molecules-comment-header:foo-1(description: 'foo')}}",

0 commit comments

Comments
 (0)