Skip to content

Commit 4b2ba69

Browse files
committed
use socket for testing
1 parent de3d4b4 commit 4b2ba69

File tree

30 files changed

+127
-82
lines changed

30 files changed

+127
-82
lines changed

_test/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
object-src 'none';
1616
"
1717
>
18-
<script src="index.js" type="module"></script>
18+
<script src="_test/index.js" type="module"></script>
1919
</head>
2020
<body>
2121
</body>

accordion/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test } from 'socket:test'
22
import { html, qs } from '../_test/util.js'
33
import { Tonic } from '@socketsupply/tonic'
4-
import { Components } from '..'
4+
import { Components } from '../index.js'
55
Components(Tonic)
66

77
document.body.appendChild(html`

badge/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { test } from 'socket:test'
22
import { html, qs } from '../_test/util.js'
33

44
import { Tonic } from '@socketsupply/tonic'
5-
import { Components } from '..'
5+
import { Components } from '../index.js'
66

77
Components(Tonic)
88

button/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { test } from 'socket:test'
22
import { html, qs } from '../_test/util.js'
33

44
import { Tonic } from '@socketsupply/tonic'
5-
import { Components } from '..'
5+
import { Components } from '../index.js'
66

77
Components(Tonic)
88

chart/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { html, qs } from '../_test/util.js'
33

44
import { Tonic } from '@socketsupply/tonic'
55
import chart from 'chart.js'
6-
import { Components } from '..'
6+
import { Components } from '../index.js'
77

88
Components(Tonic)
99

checkbox/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { test } from 'socket:test'
22
import { html, qs } from '../_test/util.js'
33

44
import { Tonic } from '@socketsupply/tonic'
5-
import { Components } from '..'
5+
import { Components } from '../index.js'
66

77
Components(Tonic)
88

dialog/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { test } from 'socket:test'
22
import { html, qs } from '../_test/util.js'
33

44
import { Tonic } from '@socketsupply/tonic'
5-
import { Components } from '..'
5+
import { Components } from '../index.js'
66

77
Components(Tonic)
88

icon/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { test } from 'socket:test'
22
import { html, qs } from '../_test/util.js'
33

44
import { Tonic } from '@socketsupply/tonic'
5-
import { Components } from '..'
5+
import { Components } from '../index.js'
66

77
Components(Tonic)
88

importmap.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"imports": {
3-
"@socketsupply/tonic": "npm:@socketsupply/tonic"
3+
"@socketsupply/tonic": "npm:@socketsupply/tonic",
4+
"chart.js": "npm:chart.js"
45
}
56
}

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Components.Tonic = Tonic
4242
//
4343
// An example collection of components.
4444
//
45-
export function Components (Tonic) {
45+
function Components (Tonic) {
4646
if (once) {
4747
return
4848
}
@@ -83,4 +83,5 @@ export function Components (Tonic) {
8383
Tonic.add(TonicToggle, 'tonic-toggle')
8484
}
8585

86+
export { Components }
8687
export default Components

0 commit comments

Comments
 (0)