Skip to content

Commit 1197026

Browse files
committed
Update test messages
1 parent dca5c88 commit 1197026

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/snaps-controllers/src/snaps/SnapController.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3955,7 +3955,7 @@ describe('SnapController', () => {
39553955
},
39563956
}),
39573957
).rejects.toThrow(
3958-
`Assertion failed: At path: assets.foo -- Expected a string matching`,
3958+
`Assertion failed: At path: assets.foo -- Expected a value of type \`CaipAssetType\`, but received: \`"foo"\`.`,
39593959
);
39603960

39613961
snapController.destroy();
@@ -4187,7 +4187,7 @@ describe('SnapController', () => {
41874187
},
41884188
}),
41894189
).rejects.toThrow(
4190-
`Assertion failed: At path: conversionRates.foo -- Expected a string matching`,
4190+
`Assertion failed: At path: conversionRates.foo -- Expected a value of type \`CaipAssetType\`, but received: \`"foo"\`.`,
41914191
);
41924192

41934193
snapController.destroy();

packages/snaps-rpc-methods/src/endowments/protocol.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ describe('protocolCaveatSpecifications', () => {
146146
},
147147
}),
148148
).toThrow(
149-
'Invalid scopes specified: At path: foo -- Expected a string matching `/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/` but received "foo".',
149+
'Invalid scopes specified: At path: foo -- Expected a value of type `CaipChainId`, but received: `"foo"`.',
150150
);
151151
});
152152
});

packages/snaps-rpc-methods/src/permitted/experimentalProviderRequest.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ describe('snap_experimentalProviderRequest', () => {
272272
...rpcErrors
273273
.invalidParams({
274274
message:
275-
'Invalid params: At path: chainId -- Expected a string matching `/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/` but received "abcdefg".',
275+
'Invalid params: At path: chainId -- Expected a value of type `CaipChainId`, but received: `"abcdefg"`.',
276276
})
277277
.serialize(),
278278
stack: expect.any(String),

0 commit comments

Comments
 (0)