1
1
/* eslint-disable max-statements */
2
2
/* eslint-disable unicorn/filename-case */
3
- import "reflect-metadata"
3
+ import "reflect-metadata" ;
4
4
import { Balance , BalancesKey , TokenId } from "@proto-kit/library" ;
5
5
import { PrivateKey , Provable , PublicKey } from "o1js" ;
6
6
import { TestingAppChain } from "../../src/appChain/TestingAppChain" ;
@@ -17,7 +17,7 @@ let nonce = 0;
17
17
18
18
// TODO This test passes locally, but fails in the CI because of untracable
19
19
// TypeError: Do not know how to serialize a BigInt
20
- describe . skip ( "xyk" , ( ) => {
20
+ describe ( "xyk" , ( ) => {
21
21
const aliceKey = PrivateKey . fromBase58 (
22
22
"EKFEMDTUV2VJwcGmCwNKde3iE1cbu7MHhzBqTmBtGAd6PdsLTifY"
23
23
) ;
@@ -118,8 +118,12 @@ describe.skip("xyk", () => {
118
118
const balanceIn = await getBalance ( tokenInId , alice ) ;
119
119
const balanceOut = await getBalance ( tokenOutId , alice ) ;
120
120
121
- expect ( balanceIn ?. toString ( ) ) . toBe ( String ( balanceToMint - initialLiquidityA ) ) ;
122
- expect ( balanceOut ?. toString ( ) ) . toBe ( String ( balanceToMint - initialLiquidityB ) ) ;
121
+ expect ( balanceIn ?. toString ( ) ) . toBe (
122
+ String ( balanceToMint - initialLiquidityA )
123
+ ) ;
124
+ expect ( balanceOut ?. toString ( ) ) . toBe (
125
+ String ( balanceToMint - initialLiquidityB )
126
+ ) ;
123
127
} , 30_000 ) ;
124
128
125
129
it ( "should sell tokenIn" , async ( ) => {
0 commit comments