Skip to content

Commit 24901ec

Browse files
committed
Use tap instead of tape
1 parent 01b5291 commit 24901ec

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

test/engine_twig_tests.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*eslint-disable dot-notation*/
33
/*eslint-disable no-shadow*/
44

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

1920
// fake pattern lab constructor:
@@ -69,7 +70,7 @@ function testFindPartials(test, partialTests) {
6970
test.end();
7071
}
7172

72-
test('button twig pattern renders', function (test) {
73+
tap.test('button twig pattern renders', function (test) {
7374
test.plan(1);
7475

7576
var patternPath = path.join('00-atoms', '00-general', '08-button.twig');
@@ -85,7 +86,7 @@ test('button twig pattern renders', function (test) {
8586
test.end();
8687
});
8788

88-
test('media object twig pattern can see the atoms-button and atoms-image partials and renders them', function (test) {
89+
tap.test('media object twig pattern can see the atoms-button and atoms-image partials and renders them', function (test) {
8990
test.plan(1);
9091

9192
// pattern paths
@@ -113,7 +114,7 @@ test('media object twig pattern can see the atoms-button and atoms-image partial
113114
test.end();
114115
});
115116

116-
test.skip('twig partials can render JSON values', function (test) {
117+
tap.test('twig partials can render JSON values', {skip: true}, function (test) {
117118
test.plan(1);
118119

119120
// pattern paths
@@ -137,7 +138,7 @@ test.skip('twig partials can render JSON values', function (test) {
137138
test.end();
138139
});
139140

140-
test.skip('twig partials use the JSON environment from the calling pattern and can accept passed parameters', function (test) {
141+
tap.test('twig partials use the JSON environment from the calling pattern and can accept passed parameters', {skip: true}, function (test) {
141142
test.plan(1);
142143

143144
// pattern paths
@@ -169,7 +170,7 @@ test.skip('twig partials use the JSON environment from the calling pattern and c
169170
test.end();
170171
});
171172

172-
test('find_pattern_partials finds partials', function (test) {
173+
tap.test('find_pattern_partials finds partials', function (test) {
173174
testFindPartials(test, [
174175
'{% include "atoms-image" %}',
175176
"{% include 'atoms-image' %}",
@@ -180,14 +181,14 @@ test('find_pattern_partials finds partials', function (test) {
180181
]);
181182
});
182183

183-
test('find_pattern_partials finds verbose partials', function (test) {
184+
tap.test('find_pattern_partials finds verbose partials', function (test) {
184185
testFindPartials(test, [
185186
"{% include '01-molecules/06-components/03-comment-header.twig' %}",
186187
"{% include '00-atoms/00-global/06-test' %}"
187188
]);
188189
});
189190

190-
test('find_pattern_partials finds partials with twig parameters', function (test) {
191+
tap.test('find_pattern_partials finds partials with twig parameters', function (test) {
191192
testFindPartials(test, [
192193
"{% include 'molecules-template' with {'foo': 'bar'} %}",
193194
"{% include 'molecules-template' with vars %}",

0 commit comments

Comments
 (0)