UNPKG
@wener/miniquery
Version:
latest (0.0.8)
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
SQL Where like **safe** filter expression for ORM.
@wener/miniquery
/
src
/
ohm
/
ast.test.ts
10 lines
(8 loc)
•
209 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ expect, test }
from
'vitest'
;
import
{ toMiniQueryAST }
from
'./ast'
;
test
(
'miniquery ast'
,
() =>
{
for
(
const
v
of
[
`a > -1`
]) {
const
ast =
toMiniQueryAST
(v);
expect
(ast).
toBeTruthy
(); } });