Skip to content

Commit

Permalink
tests: added browser tests for sending
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jan 13, 2025
1 parent d1baa74 commit afd613a
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 11 deletions.
1 change: 1 addition & 0 deletions lib.commonjs/_tests/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import "./test-hash-typeddata.js";
import "./test-providers-avatar.js";
import "./test-providers-ccip.js";
import "./test-providers-fallback.js";
import "./test-providers-send.js";
import "./test-providers-wildcard.js";
import "./test-rlp.js";
import "./test-transaction.js";
Expand Down
2 changes: 1 addition & 1 deletion lib.commonjs/_tests/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib.commonjs/_tests/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib.commonjs/_tests/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib.esm/_admin/test-browser.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion lib.esm/_admin/test-browser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib.esm/_admin/test-browser.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib.esm/_tests/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import "./test-hash-typeddata.js";
import "./test-providers-avatar.js";
import "./test-providers-ccip.js";
import "./test-providers-fallback.js";
import "./test-providers-send.js";
import "./test-providers-wildcard.js";
import "./test-rlp.js";
import "./test-transaction.js";
Expand Down
2 changes: 1 addition & 1 deletion lib.esm/_tests/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib.esm/_tests/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib.esm/_tests/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src.ts/_admin/test-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export class CDPSession {
}

if (msg.error) {
console.log(`ERROR: ${ msg.error }`);
responder.reject(new Error(msg.error));
} else {
responder.resolve(msg.result);
Expand Down Expand Up @@ -376,5 +377,8 @@ export function start(_root: string, options: Options): Promise<Server> {
const status = await session.done;
console.log("STATUS:", status);
process.exit(status);
})();
})().catch((error) => {
console.log("ERROR");
console.log(error);
});

2 changes: 1 addition & 1 deletion src.ts/_tests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import "./test-providers-ccip.js";
//import "./test-providers-extra.js";
import "./test-providers-fallback.js";
//import "./test-providers-jsonrpc.js";
//import "./test-providers-send.js";
import "./test-providers-send.js";
import "./test-providers-wildcard.js";
import "./test-rlp.js"
import "./test-transaction.js";
Expand Down

0 comments on commit afd613a

Please sign in to comment.