@@ -3,13 +3,13 @@ import {h, s} from '../index.js'
33import { h as hFromRoot } from '../html.js'
44import { s as sFromRoot } from '../svg.js'
55
6- test ( 'hastscript' , function ( t ) {
6+ test ( 'hastscript' , ( t ) => {
77 t . equal ( h , hFromRoot , '`h` should be exposed from `/html.js`' )
88 t . equal ( s , sFromRoot , '`s` should be exposed from `/svg.js`' )
99
1010 t . equal ( typeof h , 'function' , 'should expose a function' )
1111
12- t . test ( 'selector' , function ( t ) {
12+ t . test ( 'selector' , ( t ) => {
1313 t . deepEqual (
1414 h ( ) ,
1515 { type : 'root' , children : [ ] } ,
@@ -118,8 +118,8 @@ test('hastscript', function (t) {
118118 t . end ( )
119119 } )
120120
121- t . test ( 'properties' , function ( t ) {
122- t . test ( 'known property names' , function ( t ) {
121+ t . test ( 'properties' , ( t ) => {
122+ t . test ( 'known property names' , ( t ) => {
123123 t . deepEqual (
124124 h ( '' , { className : 'foo' } ) ,
125125 {
@@ -167,7 +167,7 @@ test('hastscript', function (t) {
167167 t . end ( )
168168 } )
169169
170- t . test ( 'unknown property names' , function ( t ) {
170+ t . test ( 'unknown property names' , ( t ) => {
171171 t . deepEqual (
172172 h ( '' , { allowbigscreen : true } ) ,
173173 {
@@ -204,7 +204,7 @@ test('hastscript', function (t) {
204204 t . end ( )
205205 } )
206206
207- t . test ( 'other namespaces' , function ( t ) {
207+ t . test ( 'other namespaces' , ( t ) => {
208208 t . deepEqual (
209209 h ( '' , { 'aria-valuenow' : 1 } ) ,
210210 {
@@ -318,7 +318,7 @@ test('hastscript', function (t) {
318318 t . end ( )
319319 } )
320320
321- t . test ( 'data property names' , function ( t ) {
321+ t . test ( 'data property names' , ( t ) => {
322322 t . deepEqual (
323323 h ( '' , { 'data-foo' : true } ) ,
324324 {
@@ -410,7 +410,7 @@ test('hastscript', function (t) {
410410 t . end ( )
411411 } )
412412
413- t . test ( 'unknown property values' , function ( t ) {
413+ t . test ( 'unknown property values' , ( t ) => {
414414 t . deepEqual (
415415 h ( '' , { foo : 'bar' } ) ,
416416 {
@@ -491,7 +491,7 @@ test('hastscript', function (t) {
491491 t . end ( )
492492 } )
493493
494- t . test ( 'known booleans' , function ( t ) {
494+ t . test ( 'known booleans' , ( t ) => {
495495 t . deepEqual (
496496 h ( '' , { allowFullScreen : '' } ) ,
497497 {
@@ -528,7 +528,7 @@ test('hastscript', function (t) {
528528 t . end ( )
529529 } )
530530
531- t . test ( 'known overloaded booleans' , function ( t ) {
531+ t . test ( 'known overloaded booleans' , ( t ) => {
532532 t . deepEqual (
533533 h ( '' , { download : '' } ) ,
534534 {
@@ -565,7 +565,7 @@ test('hastscript', function (t) {
565565 t . end ( )
566566 } )
567567
568- t . test ( 'known numbers' , function ( t ) {
568+ t . test ( 'known numbers' , ( t ) => {
569569 t . deepEqual (
570570 h ( 'textarea' , { cols : '3' } ) ,
571571 {
@@ -602,7 +602,7 @@ test('hastscript', function (t) {
602602 t . end ( )
603603 } )
604604
605- t . test ( 'known lists' , function ( t ) {
605+ t . test ( 'known lists' , ( t ) => {
606606 t . deepEqual (
607607 h ( '' , { class : 'foo bar baz' } ) ,
608608 {
@@ -639,7 +639,7 @@ test('hastscript', function (t) {
639639 t . end ( )
640640 } )
641641
642- t . test ( 'style' , function ( t ) {
642+ t . test ( 'style' , ( t ) => {
643643 t . deepEqual (
644644 h ( '' , { style : { color : 'red' , '-webkit-border-radius' : '3px' } } ) ,
645645 {
@@ -672,7 +672,7 @@ test('hastscript', function (t) {
672672 t . end ( )
673673 } )
674674
675- t . test ( 'children' , function ( t ) {
675+ t . test ( 'children' , ( t ) => {
676676 t . deepEqual (
677677 h ( 'div' , { } , [ ] ) ,
678678 {
@@ -949,7 +949,7 @@ test('hastscript', function (t) {
949949 )
950950
951951 t . throws (
952- function ( ) {
952+ ( ) => {
953953 // @ts -ignore runtime.
954954 h ( 'foo' , { } , true )
955955 } ,
@@ -960,7 +960,7 @@ test('hastscript', function (t) {
960960 t . end ( )
961961 } )
962962
963- t . test ( '<template>' , function ( t ) {
963+ t . test ( '<template>' , ( t ) => {
964964 t . deepEqual (
965965 h ( 'template' ) ,
966966 {
@@ -1018,7 +1018,7 @@ test('hastscript', function (t) {
10181018 t . end ( )
10191019 } )
10201020
1021- t . test ( 'svg' , function ( t ) {
1021+ t . test ( 'svg' , ( t ) => {
10221022 t . deepEqual (
10231023 s ( ) ,
10241024 { type : 'root' , children : [ ] } ,
@@ -1146,7 +1146,7 @@ test('hastscript', function (t) {
11461146 t . end ( )
11471147 } )
11481148
1149- t . test ( 'tag names' , function ( t ) {
1149+ t . test ( 'tag names' , ( t ) => {
11501150 t . deepEqual (
11511151 h ( '' , [ h ( 'DIV' ) , h ( 'dIv' ) , h ( 'div' ) ] ) ,
11521152 {
0 commit comments