@@ -17,7 +17,7 @@ var toMdast = require('..')
1717
1818var fixtures = path . join ( __dirname , 'fixtures' )
1919
20- test ( 'core' , function ( t ) {
20+ test ( 'core' , function ( t ) {
2121 t . deepEqual (
2222 toMdast ( u ( 'root' , [ h ( 'strong' , 'Alpha' ) ] ) ) ,
2323 u ( 'root' , [ u ( 'strong' , [ u ( 'text' , 'Alpha' ) ] ) ] ) ,
@@ -78,21 +78,17 @@ test('core', function(t) {
7878 t . end ( )
7979} )
8080
81- test ( 'fixtures' , function ( t ) {
82- var remark = unified ( )
83- . use ( markdown )
84- . use ( stringify )
81+ test ( 'fixtures' , function ( t ) {
82+ var remark = unified ( ) . use ( markdown ) . use ( stringify )
8583
86- fs . readdirSync ( fixtures )
87- . filter ( negate ( hidden ) )
88- . forEach ( check )
84+ fs . readdirSync ( fixtures ) . filter ( negate ( hidden ) ) . forEach ( check )
8985
9086 t . end ( )
9187
9288 function check ( name ) {
9389 var ignore = / ^ b a s e \b / . test ( name ) && typeof URL === 'undefined'
9490
95- t . test ( name , function ( st ) {
91+ t . test ( name , function ( st ) {
9692 var input = String (
9793 fs . readFileSync ( path . join ( fixtures , name , 'index.html' ) )
9894 )
@@ -113,7 +109,7 @@ test('fixtures', function(t) {
113109
114110 var fromHtml = unified ( )
115111 . use ( html )
116- . use ( function ( ) {
112+ . use ( function ( ) {
117113 return transformer
118114 function transformer ( tree ) {
119115 return toMdast ( tree , config )
@@ -126,7 +122,7 @@ test('fixtures', function(t) {
126122 // Replace middots with spaces (useful for break nodes).
127123 output = output . replace ( / · / g, ' ' )
128124
129- st . doesNotThrow ( function ( ) {
125+ st . doesNotThrow ( function ( ) {
130126 assert ( tree )
131127 } , 'should produce valid mdast nodes' )
132128
@@ -156,10 +152,10 @@ test('fixtures', function(t) {
156152 }
157153} )
158154
159- test ( 'handlers option' , function ( t ) {
155+ test ( 'handlers option' , function ( t ) {
160156 var options = {
161157 handlers : {
162- div : function ( h , node ) {
158+ div : function ( h , node ) {
163159 node . children [ 0 ] . value = 'Beta'
164160 node . type = 'paragraph'
165161 return h ( node , 'paragraph' , node . children )
@@ -207,7 +203,7 @@ test('handlers option', function(t) {
207203 t . end ( )
208204} )
209205
210- test ( 'document option' , function ( t ) {
206+ test ( 'document option' , function ( t ) {
211207 var tree = u ( 'root' , [
212208 h ( 'b' , 'Importance' ) ,
213209 u ( 'text' , ' and ' ) ,
@@ -242,7 +238,7 @@ test('document option', function(t) {
242238 t . end ( )
243239} )
244240
245- test ( 'newlines option' , function ( t ) {
241+ test ( 'newlines option' , function ( t ) {
246242 t . deepEqual (
247243 toMdast ( {
248244 type : 'root' ,
0 commit comments