@@ -4,10 +4,10 @@ var test = require('tape')
4
4
var s = require ( './svg' )
5
5
var h = require ( './html' )
6
6
7
- test ( 'hastscript' , function ( t ) {
7
+ test ( 'hastscript' , function ( t ) {
8
8
t . equal ( typeof h , 'function' , 'should expose a function' )
9
9
10
- t . test ( 'selector' , function ( st ) {
10
+ t . test ( 'selector' , function ( st ) {
11
11
st . deepEqual (
12
12
h ( ) ,
13
13
{
@@ -110,8 +110,8 @@ test('hastscript', function(t) {
110
110
st . end ( )
111
111
} )
112
112
113
- t . test ( 'properties' , function ( st ) {
114
- st . test ( 'known property names' , function ( sst ) {
113
+ t . test ( 'properties' , function ( st ) {
114
+ st . test ( 'known property names' , function ( sst ) {
115
115
sst . deepEqual (
116
116
h ( null , { className : 'foo' } ) ,
117
117
{
@@ -159,7 +159,7 @@ test('hastscript', function(t) {
159
159
sst . end ( )
160
160
} )
161
161
162
- st . test ( 'unknown property names' , function ( sst ) {
162
+ st . test ( 'unknown property names' , function ( sst ) {
163
163
sst . deepEqual (
164
164
h ( null , { allowbigscreen : true } ) ,
165
165
{
@@ -196,7 +196,7 @@ test('hastscript', function(t) {
196
196
sst . end ( )
197
197
} )
198
198
199
- st . test ( 'other namespaces' , function ( sst ) {
199
+ st . test ( 'other namespaces' , function ( sst ) {
200
200
sst . deepEqual (
201
201
h ( null , { 'aria-valuenow' : 1 } ) ,
202
202
{
@@ -310,7 +310,7 @@ test('hastscript', function(t) {
310
310
sst . end ( )
311
311
} )
312
312
313
- st . test ( 'data property names' , function ( sst ) {
313
+ st . test ( 'data property names' , function ( sst ) {
314
314
sst . deepEqual (
315
315
h ( null , { 'data-foo' : true } ) ,
316
316
{
@@ -402,7 +402,7 @@ test('hastscript', function(t) {
402
402
sst . end ( )
403
403
} )
404
404
405
- st . test ( 'unknown property values' , function ( sst ) {
405
+ st . test ( 'unknown property values' , function ( sst ) {
406
406
sst . deepEqual (
407
407
h ( null , { foo : 'bar' } ) ,
408
408
{
@@ -483,7 +483,7 @@ test('hastscript', function(t) {
483
483
sst . end ( )
484
484
} )
485
485
486
- st . test ( 'known booleans' , function ( sst ) {
486
+ st . test ( 'known booleans' , function ( sst ) {
487
487
sst . deepEqual (
488
488
h ( null , { allowFullScreen : '' } ) ,
489
489
{
@@ -520,7 +520,7 @@ test('hastscript', function(t) {
520
520
sst . end ( )
521
521
} )
522
522
523
- st . test ( 'known overloaded booleans' , function ( sst ) {
523
+ st . test ( 'known overloaded booleans' , function ( sst ) {
524
524
sst . deepEqual (
525
525
h ( null , { download : '' } ) ,
526
526
{
@@ -557,7 +557,7 @@ test('hastscript', function(t) {
557
557
sst . end ( )
558
558
} )
559
559
560
- st . test ( 'known numbers' , function ( sst ) {
560
+ st . test ( 'known numbers' , function ( sst ) {
561
561
sst . deepEqual (
562
562
h ( 'textarea' , { cols : '3' } ) ,
563
563
{
@@ -594,7 +594,7 @@ test('hastscript', function(t) {
594
594
sst . end ( )
595
595
} )
596
596
597
- st . test ( 'known lists' , function ( sst ) {
597
+ st . test ( 'known lists' , function ( sst ) {
598
598
sst . deepEqual (
599
599
h ( null , { class : 'foo bar baz' } ) ,
600
600
{
@@ -631,7 +631,7 @@ test('hastscript', function(t) {
631
631
sst . end ( )
632
632
} )
633
633
634
- st . test ( 'style' , function ( sst ) {
634
+ st . test ( 'style' , function ( sst ) {
635
635
sst . deepEqual (
636
636
h ( null , { style : { color : 'red' , '-webkit-border-radius' : '3px' } } ) ,
637
637
{
@@ -664,7 +664,7 @@ test('hastscript', function(t) {
664
664
st . end ( )
665
665
} )
666
666
667
- t . test ( 'children' , function ( st ) {
667
+ t . test ( 'children' , function ( st ) {
668
668
st . deepEqual (
669
669
h ( 'div' , { } , [ ] ) ,
670
670
{
@@ -940,7 +940,7 @@ test('hastscript', function(t) {
940
940
)
941
941
942
942
st . throws (
943
- function ( ) {
943
+ function ( ) {
944
944
h ( 'foo' , { } , true )
945
945
} ,
946
946
/ E x p e c t e d n o d e , n o d e s , o r s t r i n g , g o t ` t r u e ` / ,
@@ -950,7 +950,7 @@ test('hastscript', function(t) {
950
950
st . end ( )
951
951
} )
952
952
953
- t . test ( '<template>' , function ( st ) {
953
+ t . test ( '<template>' , function ( st ) {
954
954
st . deepEqual (
955
955
h ( 'template' ) ,
956
956
{
@@ -1008,7 +1008,7 @@ test('hastscript', function(t) {
1008
1008
st . end ( )
1009
1009
} )
1010
1010
1011
- t . test ( 'svg' , function ( st ) {
1011
+ t . test ( 'svg' , function ( st ) {
1012
1012
st . deepEqual (
1013
1013
s ( ) ,
1014
1014
{
@@ -1130,7 +1130,7 @@ test('hastscript', function(t) {
1130
1130
st . end ( )
1131
1131
} )
1132
1132
1133
- t . test ( 'tag names' , function ( st ) {
1133
+ t . test ( 'tag names' , function ( st ) {
1134
1134
st . deepEqual (
1135
1135
h ( null , [ h ( 'DIV' ) , h ( 'dIv' ) , h ( 'div' ) ] ) ,
1136
1136
{
0 commit comments