UNPKG
@unspent/phi
Version:
latest (0.2.19)
0.2.19
0.2.18
0.2.17
0.2.16
0.2.15
0.2.14
0.2.13
0.2.12
0.2.6
0.2.5
0.2.4
0.2.3
0.2.0
0.1.3
0.1.2
0.1.0
0.0.17
0.0.16
0.0.5
0.0.4
0.0.3
a collection of anyone can spend contracts
@unspent/phi
/
src
/
contract
/
constant.test.ts
11 lines
(8 loc)
•
301 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{ contractMap }
from
"./constant.js"
;
describe
(
`Test class map`
,
() =>
{
test
(
"Should import a class"
,
async
() => {
const
fClass = contractMap[
"F"
];
const
f =
new
fClass
(
undefined
,
undefined
,
undefined
,{
version
:
1
});
expect
(f.
toString
()).
toContain
(
"F,1,1,1000,1,a914"
); }); });