File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 3737 "coco" : " ^0.9.1" ,
3838 "coffee-script" : " ^1.7.1" ,
3939 "iced-coffee-script" : " ^1.7.1-b" ,
40+ "json5" : " ^0.4.0" ,
4041 "mocha" : " ^1.17.1" ,
4142 "node-jsx" : " ^0.10.0" ,
4243 "require-csv" : " 0.0.1" ,
Original file line number Diff line number Diff line change 1+ {
2+ "data" : {
3+ "trueKey" : true ,
4+ "falseKey" : false ,
5+ "subKey" : {
6+ "subProp" : 1
7+ }
8+ }
9+ /* omg, a comment in json?? */
10+ }
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ describe('registerFor', function () {
1616 rechoir . registerFor ( './test/fixtures/test.co' ) ;
1717 expect ( require ( './fixtures/test.co' ) ) . to . deep . equal ( expected ) ;
1818 } ) ;
19-
2019 it ( 'should know coffee-script' , function ( ) {
2120 rechoir . registerFor ( './test/fixtures/test.coffee' ) ;
2221 expect ( require ( './fixtures/test.coffee' ) ) . to . deep . equal ( expected ) ;
@@ -46,6 +45,10 @@ describe('registerFor', function () {
4645 rechoir . registerFor ( './test/fixtures/test.json' ) ;
4746 expect ( require ( './fixtures/test.json' ) ) . to . deep . equal ( expected ) ;
4847 } ) ;
48+ it ( 'should know .json5' , function ( ) {
49+ rechoir . registerFor ( './test/fixtures/test.json5' ) ;
50+ expect ( require ( './fixtures/test.json5' ) ) . to . deep . equal ( expected ) ;
51+ } ) ;
4952 it ( 'should know jsx' , function ( ) {
5053 rechoir . registerFor ( './test/fixtures/test.jsx' ) ;
5154 expect ( require ( './fixtures/test.jsx' ) ) . to . deep . equal ( expected ) ;
You can’t perform that action at this time.
0 commit comments