@@ -5,8 +5,8 @@ var h = require('hastscript')
55var u = require ( 'unist-builder' )
66var to = require ( '..' )
77
8- test ( '`element` attributes' , function ( t ) {
9- t . test ( 'unknown' , function ( st ) {
8+ test ( '`element` attributes' , function ( t ) {
9+ t . test ( 'unknown' , function ( st ) {
1010 st . deepEqual (
1111 to ( u ( 'element' , { tagName : 'i' , properties : { unknown : false } } , [ ] ) ) ,
1212 '<i></i>' ,
@@ -76,7 +76,7 @@ test('`element` attributes', function(t) {
7676 st . end ( )
7777 } )
7878
79- t . test ( 'known booleans' , function ( st ) {
79+ t . test ( 'known booleans' , function ( st ) {
8080 st . deepEqual (
8181 to ( u ( 'element' , { tagName : 'i' , properties : { hidden : false } } , [ ] ) ) ,
8282 '<i></i>' ,
@@ -116,7 +116,7 @@ test('`element` attributes', function(t) {
116116 st . end ( )
117117 } )
118118
119- t . test ( 'known overloaded booleans' , function ( st ) {
119+ t . test ( 'known overloaded booleans' , function ( st ) {
120120 st . deepEqual (
121121 to ( u ( 'element' , { tagName : 'a' , properties : { download : false } } , [ ] ) ) ,
122122 '<a></a>' ,
@@ -168,7 +168,7 @@ test('`element` attributes', function(t) {
168168 st . end ( )
169169 } )
170170
171- t . test ( 'known numbers' , function ( st ) {
171+ t . test ( 'known numbers' , function ( st ) {
172172 st . deepEqual (
173173 to ( u ( 'element' , { tagName : 'i' , properties : { cols : false } } , [ ] ) ) ,
174174 '<i></i>' ,
@@ -262,7 +262,7 @@ test('`element` attributes', function(t) {
262262 st . end ( )
263263 } )
264264
265- t . test ( 'known space-separated lists' , function ( st ) {
265+ t . test ( 'known space-separated lists' , function ( st ) {
266266 st . deepEqual (
267267 to ( u ( 'element' , { tagName : 'i' , properties : { className : false } } , [ ] ) ) ,
268268 '<i></i>' ,
@@ -348,7 +348,7 @@ test('`element` attributes', function(t) {
348348 st . end ( )
349349 } )
350350
351- t . test ( 'known comma-separated lists' , function ( st ) {
351+ t . test ( 'known comma-separated lists' , function ( st ) {
352352 st . deepEqual (
353353 to ( u ( 'element' , { tagName : 'i' , properties : { accept : false } } , [ ] ) ) ,
354354 '<i></i>' ,
@@ -424,7 +424,7 @@ test('`element` attributes', function(t) {
424424 st . end ( )
425425 } )
426426
427- t . test ( 'known normals' , function ( st ) {
427+ t . test ( 'known normals' , function ( st ) {
428428 st . deepEqual (
429429 to ( u ( 'element' , { tagName : 'i' , properties : { id : false } } , [ ] ) ) ,
430430 '<i></i>' ,
@@ -496,7 +496,7 @@ test('`element` attributes', function(t) {
496496 st . end ( )
497497 } )
498498
499- t . test ( 'data properties' , function ( st ) {
499+ t . test ( 'data properties' , function ( st ) {
500500 st . deepEqual (
501501 to ( u ( 'element' , { tagName : 'i' , properties : { dataId : false } } , [ ] ) ) ,
502502 '<i></i>' ,
@@ -584,7 +584,7 @@ test('`element` attributes', function(t) {
584584 st . end ( )
585585 } )
586586
587- t . test ( 'collapseEmptyAttributes' , function ( st ) {
587+ t . test ( 'collapseEmptyAttributes' , function ( st ) {
588588 st . deepEqual (
589589 to ( u ( 'element' , { tagName : 'i' , properties : { id : '' } } , [ ] ) ) ,
590590 '<i id=""></i>' ,
@@ -602,7 +602,7 @@ test('`element` attributes', function(t) {
602602 st . end ( )
603603 } )
604604
605- t . test ( 'tightAttributes' , function ( st ) {
605+ t . test ( 'tightAttributes' , function ( st ) {
606606 st . deepEqual (
607607 to ( u ( 'element' , { tagName : 'i' , properties : { title : 'a' , id : 'b' } } , [ ] ) ) ,
608608 '<i title="a" id="b"></i>' ,
@@ -620,7 +620,7 @@ test('`element` attributes', function(t) {
620620 st . end ( )
621621 } )
622622
623- t . test ( 'tightCommaSeparatedLists' , function ( st ) {
623+ t . test ( 'tightCommaSeparatedLists' , function ( st ) {
624624 st . deepEqual (
625625 to ( u ( 'element' , { tagName : 'i' , properties : { accept : [ 'a' , 'b' ] } } , [ ] ) ) ,
626626 '<i accept="a, b"></i>' ,
@@ -638,7 +638,7 @@ test('`element` attributes', function(t) {
638638 st . end ( )
639639 } )
640640
641- t . test ( 'quote' , function ( st ) {
641+ t . test ( 'quote' , function ( st ) {
642642 st . deepEqual (
643643 to ( u ( 'element' , { tagName : 'i' , properties : { title : 'a' } } , [ ] ) ) ,
644644 '<i title="a"></i>' ,
@@ -678,7 +678,7 @@ test('`element` attributes', function(t) {
678678 )
679679
680680 st . throws (
681- function ( ) {
681+ function ( ) {
682682 to ( h ( 'img' ) , { quote : '`' } )
683683 } ,
684684 / I n v a l i d q u o t e ` ` ` , e x p e c t e d ` ' ` o r ` " ` / ,
@@ -688,7 +688,7 @@ test('`element` attributes', function(t) {
688688 st . end ( )
689689 } )
690690
691- t . test ( 'quoteSmart' , function ( st ) {
691+ t . test ( 'quoteSmart' , function ( st ) {
692692 st . deepEqual (
693693 to ( u ( 'element' , { tagName : 'i' , properties : { title : 'a' } } , [ ] ) , {
694694 allowDangerousCharacters : true ,
@@ -755,7 +755,7 @@ test('`element` attributes', function(t) {
755755 st . end ( )
756756 } )
757757
758- t . test ( 'preferUnquoted' , function ( st ) {
758+ t . test ( 'preferUnquoted' , function ( st ) {
759759 st . deepEqual (
760760 to ( u ( 'element' , { tagName : 'i' , properties : { id : 'a' } } , [ ] ) , {
761761 preferUnquoted : true
@@ -783,7 +783,7 @@ test('`element` attributes', function(t) {
783783 st . end ( )
784784 } )
785785
786- t . test ( 'entities in attributes' , function ( st ) {
786+ t . test ( 'entities in attributes' , function ( st ) {
787787 st . deepEqual (
788788 to ( u ( 'element' , { tagName : 'i' , properties : { '3<5\0' : 'a' } } , [ ] ) ) ,
789789 '<i 3<5�="a"></i>' ,
0 commit comments