Skip to content

Commit

Permalink
Linting fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Aug 16, 2023
1 parent 856cc72 commit fc410e8
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions test/unit/server/get_transaction_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ describe("Server#getTransaction", function () {
.then((resp) => {
expect(Object.keys(resp)).to.eql(Object.keys(expected));
expect(resp).to.eql(expected);
expect(resp.returnValue).to.eql(
new XdrLargeInt("u64", 1234).toScVal()
);
expect(resp.returnValue).to.eql(new XdrLargeInt("u64", 1234).toScVal());
done();
})
.catch((err) => done(err));
Expand All @@ -117,18 +115,21 @@ describe("Server#getTransaction", function () {
});

function makeTxResult(status, addSoroban = true) {
const metaV3 = new xdr.TransactionMeta(3, new xdr.TransactionMetaV3({
ext: new xdr.ExtensionPoint(0),
txChangesBefore: [],
operations: [],
txChangesAfter: [],
sorobanMeta: new xdr.SorobanTransactionMeta({
const metaV3 = new xdr.TransactionMeta(
3,
new xdr.TransactionMetaV3({
ext: new xdr.ExtensionPoint(0),
events: [],
diagnosticEvents: [],
returnValue: nativeToScVal(1234),
}),
}));
txChangesBefore: [],
operations: [],
txChangesAfter: [],
sorobanMeta: new xdr.SorobanTransactionMeta({
ext: new xdr.ExtensionPoint(0),
events: [],
diagnosticEvents: [],
returnValue: nativeToScVal(1234),
}),
})
);

// only injected in the success case
//
Expand Down

0 comments on commit fc410e8

Please sign in to comment.