File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" : [
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 <olov.lassus@gmail.com>" ,
4344 "license" : " MIT"
Original file line number Diff line number Diff line change @@ -42,8 +42,13 @@ function runTests(tests){
4242
4343function 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 ( ) ;
You can’t perform that action at this time.
0 commit comments