Skip to content

Commit

Permalink
refactor: test params
Browse files Browse the repository at this point in the history
  • Loading branch information
Gancho Radkov committed Apr 10, 2024
1 parent 7fa4d39 commit 3c5ff39
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class SingleEthereum extends ISingleEthereum {
public events: ISingleEthereum["events"] = new EventEmitter();
public engine: ISingleEthereum["engine"];
public metadata: ISingleEthereum["metadata"];
public chainId: number;
public chainId: ISingleEthereum["chainId"];

static async init(opts: SingleEthereumTypes.Options) {
const client = new SingleEthereum(opts);
Expand Down
2 changes: 1 addition & 1 deletion test/auth.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe("Auth Integration", () => {
metadata: {} as any,
name: "dapp",
});
wallet = await SingleEthereum.init({ core, name: "wallet", metadata: {} as any });
wallet = await SingleEthereum.init({ core, name: "wallet", metadata: {} as any, chainId: 1 });
expect(wallet).to.be.exist;
expect(dapp).to.be.exist;
expect(core).to.be.exist;
Expand Down
4 changes: 4 additions & 0 deletions test/sign.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ describe("Sign Integration", () => {
core,
name: "wallet",
metadata: {} as any,
chainId: 1,
});
await new Promise((resolve) => setTimeout(resolve, 1000));
expect(wallet).to.be.exist;
Expand Down Expand Up @@ -671,6 +672,7 @@ describe("Sign Integration", () => {
core,
name: "wallet",
metadata: {} as any,
chainId: 1,
});
const expectedError = getSdkError("UNSUPPORTED_CHAINS");
await Promise.all([
Expand Down Expand Up @@ -708,6 +710,7 @@ describe("Sign Integration", () => {
core,
name: "wallet",
metadata: {} as any,
chainId: 1,
});
const expectedError = getSdkError("UNSUPPORTED_NAMESPACE_KEY");
await Promise.all([
Expand Down Expand Up @@ -745,6 +748,7 @@ describe("Sign Integration", () => {
core,
name: "wallet",
metadata: {} as any,
chainId: 1,
});
await Promise.all([
new Promise<void>((resolve) => {
Expand Down

0 comments on commit 3c5ff39

Please sign in to comment.