UNPKG
@lume/live-code
Version:
latest (0.6.7)
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.2
0.5.1
0.5.0
0.4.2
0.4.1
0.4.0
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.2
0.1.1
0.1.0
0.0.2
0.0.1
A `<live-code>` element for editable code with live output.
github.com/lume/live-code
lume/live-code
@lume/live-code
/
src
/
LiveCode.test.ts
15 lines
(11 loc)
•
272 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
{
LiveCode
}
from
'./LiveCode.js'
declare
global
{
const
expect
:
any
}
describe
(
'<live-code>'
,
() =>
{
it
(
'is a custom element'
,
() =>
{
const
editor =
document
.
createElement
(
'live-code'
)
expect
(editor
instanceof
LiveCode
).
toBe
(
true
) })
// ... TODO ...
})