File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 1919 "nlcst-to-string" : " ^2.0.0"
2020 },
2121 "devDependencies" : {
22- "browserify" : " ^14 .0.0" ,
22+ "browserify" : " ^16 .0.0" ,
2323 "esmangle" : " ^1.0.0" ,
2424 "nyc" : " ^11.0.0" ,
25- "remark-cli" : " ^4 .0.0" ,
26- "remark-preset-wooorm" : " ^3 .0.0" ,
25+ "remark-cli" : " ^5 .0.0" ,
26+ "remark-preset-wooorm" : " ^4 .0.0" ,
2727 "tape" : " ^4.0.0" ,
28- "xo" : " ^0.18.2 "
28+ "xo" : " ^0.20.0 "
2929 },
3030 "scripts" : {
3131 "build-md" : " remark . --quiet --frail --output" ,
4646 "xo" : {
4747 "space" : true ,
4848 "esnext" : false ,
49+ "rules" : {
50+ "guard-for-in" : " off" ,
51+ "no-var" : " off" ,
52+ "prefer-arrow-callback" : " off"
53+ },
4954 "ignore" : [
5055 " nlcst-normalize.js"
5156 ]
Original file line number Diff line number Diff line change 11'use strict' ;
22
33var test = require ( 'tape' ) ;
4- var normalize = require ( './ ' ) ;
4+ var normalize = require ( '.' ) ;
55
66test ( 'Basic' , function ( t ) {
77 t . throws (
@@ -24,8 +24,7 @@ test('Case', function (t) {
2424 t . equal (
2525 normalize ( {
2626 type : 'WordNode' ,
27- children : [ { type : 'TextNode' , value : 'Dont' }
28- ]
27+ children : [ { type : 'TextNode' , value : 'Dont' } ]
2928 } ) ,
3029 'dont' ,
3130 'should normalize case (node)'
@@ -260,9 +259,9 @@ test('Apostrophes', function (t) {
260259
261260test ( 'Dashes' , function ( t ) {
262261 t . equal (
263- normalize ( 'Don\'t Block-Level' ) ,
264- 'dont blocklevel' ,
265- 'should normalize dashes (string)'
262+ normalize ( 'Don\'t Block-Level' ) ,
263+ 'dont blocklevel' ,
264+ 'should normalize dashes (string)'
266265 ) ;
267266
268267 t . equal (
You can’t perform that action at this time.
0 commit comments