Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Prohaszka <stephane.prohaszka@ledger.fr>
  • Loading branch information
sprohaszka-ledger committed Aug 7, 2024
1 parent 112dcf9 commit db0bb4f
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ describe("buildTransaction", () => {

it("returns a built transaction in Stellar format when useAllAmount", async () => {
// Given
const sender = "GCTS5ANSL6YCXR2M4XXM5BPN34UUT3M2VUJWVYOX5EMSHZC3T7O5Z6NZ";
const account = createFixtureAccount({
freshAddress: sender,
balance: BigNumber(600239412),
Expand Down Expand Up @@ -150,9 +149,7 @@ describe("buildTransaction", () => {

// Then
expect(builtTransaction.fee).toEqual("1");
expect(builtTransaction.source).toEqual(
"GCTS5ANSL6YCXR2M4XXM5BPN34UUT3M2VUJWVYOX5EMSHZC3T7O5Z6NZ",
);
expect(builtTransaction.source).toEqual(sender);
expect(builtTransaction.operations).toHaveLength(1);
const operation = builtTransaction.operations[0];
expect(operation.type).toEqual("payment");
Expand Down Expand Up @@ -181,9 +178,7 @@ describe("buildTransaction", () => {

// Then
expect(builtTransaction.fee).toEqual("1");
expect(builtTransaction.source).toEqual(
"GCTS5ANSL6YCXR2M4XXM5BPN34UUT3M2VUJWVYOX5EMSHZC3T7O5Z6NZ",
);
expect(builtTransaction.source).toEqual(sender);
expect(builtTransaction.operations).toHaveLength(1);
expect(builtTransaction.memo.type).toEqual("text");
expect(builtTransaction.memo.value).toEqual("Hello");
Expand Down

0 comments on commit db0bb4f

Please sign in to comment.