Skip to content

Commit 3fb7814

Browse files
committed
enabled XYK tests
1 parent c8f2568 commit 3fb7814

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

packages/sdk/test/XYK/XYK.test.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable max-statements */
22
/* eslint-disable unicorn/filename-case */
3-
import "reflect-metadata"
3+
import "reflect-metadata";
44
import { Balance, BalancesKey, TokenId } from "@proto-kit/library";
55
import { PrivateKey, Provable, PublicKey } from "o1js";
66
import { TestingAppChain } from "../../src/appChain/TestingAppChain";
@@ -17,7 +17,7 @@ let nonce = 0;
1717

1818
// TODO This test passes locally, but fails in the CI because of untracable
1919
// TypeError: Do not know how to serialize a BigInt
20-
describe.skip("xyk", () => {
20+
describe("xyk", () => {
2121
const aliceKey = PrivateKey.fromBase58(
2222
"EKFEMDTUV2VJwcGmCwNKde3iE1cbu7MHhzBqTmBtGAd6PdsLTifY"
2323
);
@@ -118,8 +118,12 @@ describe.skip("xyk", () => {
118118
const balanceIn = await getBalance(tokenInId, alice);
119119
const balanceOut = await getBalance(tokenOutId, alice);
120120

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+
);
123127
}, 30_000);
124128

125129
it("should sell tokenIn", async () => {

0 commit comments

Comments
 (0)