@@ -11,54 +11,35 @@ import * as jsxHtmlMod from '../html/jsx-runtime.js'
1111import * as jsxSvgMod from '../svg/jsx-runtime.js'
1212
1313test ( 'api' , ( ) => {
14- const core = Object . keys ( coreMod )
15- assert ( core . includes ( 'h' ) , 'should expose `h` from `.`' )
16- assert ( core . includes ( 's' ) , 'should expose `s` from `.`' )
17- const html = Object . keys ( htmlMod )
18- assert ( html . includes ( 'h' ) , 'should expose `h` from `/html`' )
19- const svg = Object . keys ( svgMod )
20- assert ( svg . includes ( 's' ) , 'should expose `s` from `/svg`' )
21- const jsxCore = Object . keys ( jsxCoreMod )
22- assert (
23- jsxCore . includes ( 'Fragment' ) ,
24- 'should expose `Fragment` from `/jsx-runtime`'
14+ assert . deepEqual (
15+ Object . keys ( coreMod ) . sort ( ) ,
16+ [ 'h' , 's' ] ,
17+ 'should expose the public api (`/`)'
2518 )
26- assert ( jsxCore . includes ( 'jsx' ) , 'should expose `jsx` from `/jsx-runtime`' )
27- assert ( jsxCore . includes ( 'jsxs' ) , 'should expose `jsxs` from `/jsx-runtime`' )
28- assert (
29- jsxCore . includes ( 'jsxDEV' ) ,
30- 'should expose `jsxDEV` from `/jsx-runtime`'
19+ assert . deepEqual (
20+ Object . keys ( htmlMod ) . sort ( ) ,
21+ [ 'h' ] ,
22+ 'should expose the public api (`/html`)'
3123 )
32- const jsxHtml = Object . keys ( jsxHtmlMod )
33- assert (
34- jsxHtml . includes ( 'Fragment' ) ,
35- 'should expose `Fragment` from `/html/jsx-runtime` '
24+ assert . deepEqual (
25+ Object . keys ( svgMod ) . sort ( ) ,
26+ [ 's' ] ,
27+ 'should expose the public api (`/svg`) '
3628 )
37- assert (
38- jsxHtml . includes ( 'jsx' ) ,
39- 'should expose `jsx` from `/html/jsx-runtime`'
29+ assert . deepEqual (
30+ Object . keys ( jsxCoreMod ) . sort ( ) ,
31+ [ 'Fragment' , 'jsx' , 'jsxDEV' , 'jsxs' ] ,
32+ 'should expose the public api (`/jsx-runtime`)'
4033 )
41- assert (
42- jsxHtml . includes ( 'jsxs' ) ,
43- 'should expose `jsxs` from `/html/jsx-runtime`'
34+ assert . deepEqual (
35+ Object . keys ( jsxHtmlMod ) . sort ( ) ,
36+ [ 'Fragment' , 'jsx' , 'jsxDEV' , 'jsxs' ] ,
37+ 'should expose the public api (`/html/jsx-runtime`)'
4438 )
45- assert (
46- jsxHtml . includes ( 'jsxDEV' ) ,
47- 'should expose `jsxDEV` from `/html/jsx-runtime`'
48- )
49- const jsxSvg = Object . keys ( jsxSvgMod )
50- assert (
51- jsxSvg . includes ( 'Fragment' ) ,
52- 'should expose `Fragment` from `/svg/jsx-runtime`'
53- )
54- assert ( jsxSvg . includes ( 'jsx' ) , 'should expose `jsx` from `/svg/jsx-runtime`' )
55- assert (
56- jsxSvg . includes ( 'jsxs' ) ,
57- 'should expose `jsxs` from `/svg/jsx-runtime`'
58- )
59- assert (
60- jsxSvg . includes ( 'jsxDEV' ) ,
61- 'should expose `jsxDEV` from `/svg/jsx-runtime`'
39+ assert . deepEqual (
40+ Object . keys ( jsxSvgMod ) . sort ( ) ,
41+ [ 'Fragment' , 'jsx' , 'jsxDEV' , 'jsxs' ] ,
42+ 'should expose the public api (`/svg/jsx-runtime`)'
6243 )
6344} )
6445
0 commit comments