Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/caip-multichain-api' into caip-m…
Browse files Browse the repository at this point in the history
…ultichain-api
  • Loading branch information
jiexi committed Jan 16, 2025
2 parents 4776860 + 718b553 commit d184228
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ describe('MultichainMiddlewareManager', () => {
expect(endSpy).not.toHaveBeenCalled();
});

it('should add middleware and call next ifno middleware exists for scope, origin, and tabId and request is not "eth_subscribe" or "eth_unsubscribe', () => {
it('should add middleware and call next if no middleware exists for scope, origin, and tabId and request is not "eth_subscribe" or "eth_unsubscribe', () => {
const multichainMiddlewareManager = new MultichainMiddlewareManager();
const middleware =
multichainMiddlewareManager.generateMultichainMiddlewareForOriginAndTabId(
Expand All @@ -129,7 +129,7 @@ describe('MultichainMiddlewareManager', () => {
expect(endSpy).not.toHaveBeenCalled();
});

it('should add middleware and return error ifno middleware exists for scope, origin, and tabId and request is "eth_subscribe"', () => {
it('should add middleware and return error if no middleware exists for scope, origin, and tabId and request is "eth_subscribe"', () => {
const multichainMiddlewareManager = new MultichainMiddlewareManager();
const middleware =
multichainMiddlewareManager.generateMultichainMiddlewareForOriginAndTabId(
Expand All @@ -150,7 +150,7 @@ describe('MultichainMiddlewareManager', () => {
expect(endSpy).toHaveBeenCalledWith(rpcErrors.methodNotFound());
});

it('should add middleware and return error ifno middleware exists for scope, origin, and tabId and request is "eth_unsubscribe"', () => {
it('should add middleware and return error if no middleware exists for scope, origin, and tabId and request is "eth_unsubscribe"', () => {
const multichainMiddlewareManager = new MultichainMiddlewareManager();
const middleware =
multichainMiddlewareManager.generateMultichainMiddlewareForOriginAndTabId(
Expand Down

0 comments on commit d184228

Please sign in to comment.