@@ -20,64 +20,64 @@ var ROOT = join(__dirname, 'fixtures')
2020
2121var fixtures = fs . readdirSync ( ROOT )
2222
23- test ( 'mdast-util-to-nlcst' , function ( t ) {
23+ test ( 'mdast-util-to-nlcst' , function ( t ) {
2424 t . throws (
25- function ( ) {
25+ function ( ) {
2626 toNLCST ( )
2727 } ,
2828 / m d a s t - u t i l - t o - n l c s t e x p e c t e d n o d e / ,
2929 'should fail when not given an AST'
3030 )
3131
3232 t . throws (
33- function ( ) {
33+ function ( ) {
3434 toNLCST ( { } )
3535 } ,
3636 / m d a s t - u t i l - t o - n l c s t e x p e c t e d n o d e / ,
3737 'should fail when not given an AST (#2)'
3838 )
3939
4040 t . throws (
41- function ( ) {
41+ function ( ) {
4242 toNLCST ( { type : 'foo' } )
4343 } ,
4444 / m d a s t - u t i l - t o - n l c s t e x p e c t e d f i l e / ,
4545 'should fail when not given a file'
4646 )
4747
4848 t . throws (
49- function ( ) {
49+ function ( ) {
5050 toNLCST ( { type : 'foo' } )
5151 } ,
5252 / m d a s t - u t i l - t o - n l c s t e x p e c t e d f i l e / ,
5353 'should fail when not given a file (#2)'
5454 )
5555
5656 t . throws (
57- function ( ) {
57+ function ( ) {
5858 toNLCST ( { type : 'text' , value : 'foo' } , { foo : 'bar' } )
5959 } ,
6060 / m d a s t - u t i l - t o - n l c s t e x p e c t e d f i l e / ,
6161 'should fail when not given a file (#3)'
6262 )
6363
6464 t . throws (
65- function ( ) {
65+ function ( ) {
6666 toNLCST ( { type : 'text' , value : 'foo' } , vfile ( 'foo' ) )
6767 } ,
6868 / m d a s t - u t i l - t o - n l c s t e x p e c t e d p a r s e r / ,
6969 'should fail without parser'
7070 )
7171
7272 t . throws (
73- function ( ) {
73+ function ( ) {
7474 toNLCST ( { type : 'text' , value : 'foo' } , vfile ( ) , Latin )
7575 } ,
7676 / m d a s t - u t i l - t o - n l c s t e x p e c t e d p o s i t i o n o n n o d e s / ,
7777 'should fail when not given positional information'
7878 )
7979
80- t . doesNotThrow ( function ( ) {
80+ t . doesNotThrow ( function ( ) {
8181 toNLCST (
8282 {
8383 type : 'text' ,
@@ -89,7 +89,7 @@ test('mdast-util-to-nlcst', function(t) {
8989 )
9090 } , 'should accept a parser constructor' )
9191
92- t . doesNotThrow ( function ( ) {
92+ t . doesNotThrow ( function ( ) {
9393 toNLCST (
9494 {
9595 type : 'text' ,
@@ -102,7 +102,7 @@ test('mdast-util-to-nlcst', function(t) {
102102 } , 'should accept a parser instance' )
103103
104104 t . throws (
105- function ( ) {
105+ function ( ) {
106106 toNLCST (
107107 {
108108 type : 'text' ,
@@ -117,7 +117,7 @@ test('mdast-util-to-nlcst', function(t) {
117117 'should fail when not given positional information (#2)'
118118 )
119119
120- t . test ( 'should accept nodes without offsets' , function ( st ) {
120+ t . test ( 'should accept nodes without offsets' , function ( st ) {
121121 var node = toNLCST (
122122 {
123123 type : 'text' ,
@@ -137,8 +137,8 @@ test('mdast-util-to-nlcst', function(t) {
137137 t . end ( )
138138} )
139139
140- test ( 'Fixtures' , function ( t ) {
141- fixtures . filter ( negate ( hidden ) ) . forEach ( function ( fixture ) {
140+ test ( 'Fixtures' , function ( t ) {
141+ fixtures . filter ( negate ( hidden ) ) . forEach ( function ( fixture ) {
142142 var filepath = join ( ROOT , fixture )
143143 var output = read ( join ( filepath , 'output.json' ) , 'utf-8' )
144144 var input = read ( join ( filepath , 'input.md' ) , 'utf-8' )
@@ -150,9 +150,7 @@ test('Fixtures', function(t) {
150150
151151 t . deepEqual (
152152 toNLCST (
153- remark ( )
154- . use ( frontmatter )
155- . parse ( input ) ,
153+ remark ( ) . use ( frontmatter ) . parse ( input ) ,
156154 vfile ( input ) ,
157155 Latin ,
158156 options
0 commit comments