Skip to content

Commit b4ca734

Browse files
Fix E2E
1 parent 9a5421a commit b4ca734

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

packages/examples/packages/client-status/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"@metamask/auto-changelog": "^5.0.2",
5252
"@metamask/snaps-cli": "workspace:^",
5353
"@metamask/snaps-jest": "workspace:^",
54+
"@metamask/snaps-utils": "workspace:^",
5455
"@swc/core": "1.11.31",
5556
"@swc/jest": "^0.2.38",
5657
"@types/node": "18.14.2",

packages/examples/packages/client-status/src/index.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { expect } from '@jest/globals';
22
import { installSnap } from '@metamask/snaps-jest';
3+
import { getPlatformVersion } from '@metamask/snaps-utils';
34

45
describe('onRpcRequest', () => {
56
it('throws an error if the requested method does not exist', async () => {
@@ -31,6 +32,8 @@ describe('onRpcRequest', () => {
3132
expect(response).toRespondWith({
3233
locked: false,
3334
active: true,
35+
clientVersion: '13.9.0',
36+
platformVersion: getPlatformVersion(),
3437
});
3538
});
3639
});

yarn.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2971,6 +2971,7 @@ __metadata:
29712971
"@metamask/snaps-cli": "workspace:^"
29722972
"@metamask/snaps-jest": "workspace:^"
29732973
"@metamask/snaps-sdk": "workspace:^"
2974+
"@metamask/snaps-utils": "workspace:^"
29742975
"@swc/core": "npm:1.11.31"
29752976
"@swc/jest": "npm:^0.2.38"
29762977
"@types/node": "npm:18.14.2"

0 commit comments

Comments
 (0)