Skip to content

Commit e3b52cb

Browse files
committed
Use tap instead of tape
1 parent 28a3989 commit e3b52cb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/engine_underscore_tests.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
var test = require('tape');
3+
var tap = require('tap');
44
var path = require('path');
55
var pa = require('../core/lib/pattern_assembler');
66
var testPatternsPath = path.resolve(__dirname, 'files', '_underscore-test-patterns');
@@ -9,9 +9,10 @@ var eol = require('os').EOL;
99
// don't run tests unless underscore is installed
1010
var engineLoader = require('../core/lib/pattern_engines');
1111
if (!engineLoader.underscore) {
12-
test.only('Underscore engine not installed, skipping tests', function (test){
12+
tap.test('Underscore engine not installed, skipping tests', function (test) {
1313
test.end();
1414
});
15+
return;
1516
}
1617

1718
// fake pattern lab constructor:
@@ -39,7 +40,7 @@ function fakePatternLab() {
3940
return fpl;
4041
}
4142

42-
test('hello world underscore pattern renders', function (test) {
43+
tap.test('hello world underscore pattern renders', function (test) {
4344
test.plan(1);
4445

4546
var patternPath = path.resolve(
@@ -53,15 +54,14 @@ test('hello world underscore pattern renders', function (test) {
5354
var patternlab = new fakePatternLab();
5455
var assembler = new pa();
5556
var helloWorldPattern = assembler.process_pattern_iterative(patternPath, patternlab);
56-
//test.comment(helloWorldPattern);
5757
assembler.process_pattern_recursive(patternPath, patternlab);
5858

5959
test.equals(helloWorldPattern.render(), 'Hello world!' + eol);
6060
test.end();
6161

6262
});
6363

64-
test('underscore partials can render JSON values', function (test) {
64+
tap.test('underscore partials can render JSON values', function (test) {
6565

6666
test.plan(1);
6767

@@ -87,7 +87,7 @@ test('underscore partials can render JSON values', function (test) {
8787

8888
});
8989

90-
test('findPartial return the ID of the partial, given a whole partial call', function (test) {
90+
tap.test('findPartial return the ID of the partial, given a whole partial call', function (test) {
9191
var engineLoader = require('../core/lib/pattern_engines');
9292
var underscoreEngine = engineLoader.underscore;
9393

0 commit comments

Comments
 (0)