Skip to content

Commit

Permalink
Fixed wallet-utils test
Browse files Browse the repository at this point in the history
  • Loading branch information
amirsaran3 committed May 16, 2022
1 parent 3dff3d4 commit 3d88778
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions packages/wallet-utils/src/lib/wallet-utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("transformActions", () => {
it("correctly transforms 'CreateAccount' action", () => {
const actions = createAction({ type: "CreateAccount" });

expect(actions).toEqual([transactions.createAccount()]);
expect(actions).toEqual(transactions.createAccount());
});

it("correctly transforms 'DeployContract' action", () => {
Expand All @@ -19,7 +19,7 @@ describe("transformActions", () => {
},
});

expect(actions).toEqual([transactions.deployContract(code)]);
expect(actions).toEqual(transactions.deployContract(code));
});

it("correctly transforms 'FunctionCall' action", () => {
Expand All @@ -38,9 +38,9 @@ describe("transformActions", () => {
},
});

expect(actions).toEqual([
transactions.functionCall(methodName, args, new BN(gas), new BN(deposit)),
]);
expect(actions).toEqual(
transactions.functionCall(methodName, args, new BN(gas), new BN(deposit))
);
});

it("correctly transforms 'Transfer' action", () => {
Expand All @@ -52,7 +52,7 @@ describe("transformActions", () => {
},
});

expect(actions).toEqual([transactions.transfer(new BN(deposit))]);
expect(actions).toEqual(transactions.transfer(new BN(deposit)));
});

it("correctly transforms 'Stake' action", () => {
Expand All @@ -67,9 +67,9 @@ describe("transformActions", () => {
},
});

expect(actions).toEqual([
transactions.stake(new BN(stake), utils.PublicKey.from(publicKey)),
]);
expect(actions).toEqual(
transactions.stake(new BN(stake), utils.PublicKey.from(publicKey))
);
});

it("correctly transforms 'AddKey' action with 'FullAccess' permission", () => {
Expand All @@ -84,12 +84,12 @@ describe("transformActions", () => {
},
});

expect(actions).toEqual([
expect(actions).toEqual(
transactions.addKey(
utils.PublicKey.from(publicKey),
transactions.fullAccessKey()
),
]);
)
);
});

it("correctly transforms 'AddKey' action with 'FunctionCall' permission", () => {
Expand All @@ -112,16 +112,16 @@ describe("transformActions", () => {
},
});

expect(actions).toEqual([
expect(actions).toEqual(
transactions.addKey(
utils.PublicKey.from(publicKey),
transactions.functionCallAccessKey(
receiverId,
methodNames,
new BN(allowance)
)
),
]);
)
);
});

it("correctly transforms 'DeleteKey' action", () => {
Expand All @@ -134,9 +134,9 @@ describe("transformActions", () => {
},
});

expect(actions).toEqual([
transactions.deleteKey(utils.PublicKey.from(publicKey)),
]);
expect(actions).toEqual(
transactions.deleteKey(utils.PublicKey.from(publicKey))
);
});

it("correctly transforms 'DeleteAccount' action", () => {
Expand All @@ -149,6 +149,6 @@ describe("transformActions", () => {
},
});

expect(actions).toEqual([transactions.deleteAccount(beneficiaryId)]);
expect(actions).toEqual(transactions.deleteAccount(beneficiaryId));
});
});

0 comments on commit 3d88778

Please sign in to comment.