UNPKG
esx-optimize
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.0
A preloader for optimizing React applications with [`esx`](https://github.com/esxjs/esx)
esx-optimize
/
test
/
index.test.mjs
12 lines
(10 loc)
•
263 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'
import
tap
from
'tap'
import
fixture
from
'./fixture'
const
{ test } = tap
const
expected =
`() => { return esx \`<div>hi</div>\` }`
test
(
'patches module system to convert module sources'
,
async
({ is }) => {
is
(fixture.
toString
(), expected) })