Skip to content

Commit b0704d2

Browse files
author
Andrew Schmadel
committed
tap-xunit
1 parent 47d42ad commit b0704d2

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"coffee-script": "~1.10.0",
2424
"diff": "^2.2.1",
2525
"indent-string": "^2.1.0",
26+
"tap-xunit": "^1.3.1",
2627
"tape": "^4.4.0"
2728
},
2829
"keywords": [
@@ -37,7 +38,7 @@
3738
"transformation"
3839
],
3940
"scripts": {
40-
"test": "node --harmony tests/tests.js"
41+
"test": "node --harmony tests/tests.js | tap-xunit"
4142
},
4243
"author": "Olov Lassus <[email protected]>",
4344
"license": "MIT"

tests/tests.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,13 @@ function runTests(tests){
4242

4343
function runTest(test) {
4444
tape(function(t){
45-
var out = babel.transform(fnBody(test.input), { plugins: "../babel-ng-annotate", presets: ["../es2015-modified"] });
46-
var expected = babel.transform(fnBody(test.expected), { plugins: [], presets: ["../es2015-modified"] });
45+
// es2015 tansforms disabled because circleCI's node/npm won't let us hack out the function name transformation
46+
// var out = babel.transform(fnBody(test.input), { plugins: "../babel-ng-annotate", presets: ["../es2015-modified"] });
47+
// var expected = babel.transform(fnBody(test.expected), { plugins: [], presets: ["../es2015-modified"] });
48+
49+
var out = babel.transform(fnBody(test.input), { plugins: "../babel-ng-annotate" });
50+
var expected = babel.transform(fnBody(test.expected), { plugins: [] });
51+
4752

4853
t.equals(out.code.trim(), expected.code.trim(), test.name);
4954
t.end();

0 commit comments

Comments
 (0)