Skip to content

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
3Nigma committed Nov 24, 2022
1 parent 31c4a29 commit a2c4b2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 1 addition & 5 deletions test/general/specs/ApiSession.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ describe("ApiSession", () => {
it("sessions cannot be instantiated directly", async () => {
const ctx = new StratoContext({});

const wallet = new Wallet(
"0.0.69",
PrivateKey.generateECDSA(),
new LocalProvider()
);
const wallet = new Wallet("0.0.69", PrivateKey.generateECDSA());
const client = new BasicStratoWallet(wallet);

expect(() => new ApiSession({}, { client, ctx })).toThrow();
Expand Down
3 changes: 3 additions & 0 deletions test/general/specs/Token.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ describe("Token", () => {
.fn()
.mockReturnValue({ tokenId: TokenId.fromString("0.0.69") });
const session = {
defaults: {
tokenCreateTransactionFee: 0,
},
execute: mockedSessionExecute,
wallet: {
account: {
Expand Down

0 comments on commit a2c4b2c

Please sign in to comment.