Skip to content

Commit

Permalink
Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed May 17, 2024
1 parent b5d7977 commit 196e10d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/snaps-execution-environments/coverage.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"branches": 80,
"functions": 90.06,
"lines": 90.76,
"statements": 90.08
"statements": 90.13
}
4 changes: 3 additions & 1 deletion packages/snaps-jest/src/internals/request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ describe('getInterfaceApi', () => {
await snapInterface.clickElement('foo');

expect(controllerMessenger.call).toHaveBeenNthCalledWith(
4,
5,
'ExecutionService:handleRpcRequest',
MOCK_SNAP_ID,
{
Expand All @@ -274,6 +274,7 @@ describe('getInterfaceApi', () => {
name: 'foo',
},
id: expect.any(String),
context: null,
},
},
},
Expand Down Expand Up @@ -321,6 +322,7 @@ describe('getInterfaceApi', () => {
value: 'bar',
},
id: expect.any(String),
context: null,
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ describe('clickElement', () => {
name: 'bar',
},
id: interfaceId,
context: null,
},
},
});
Expand Down Expand Up @@ -325,6 +326,7 @@ describe('clickElement', () => {
name: 'baz',
},
id: interfaceId,
context: null,
},
},
});
Expand All @@ -344,6 +346,7 @@ describe('clickElement', () => {
},
},
id: interfaceId,
context: null,
},
},
});
Expand Down Expand Up @@ -493,6 +496,7 @@ describe('typeInField', () => {
value: 'baz',
},
id: interfaceId,
context: null,
},
},
});
Expand Down Expand Up @@ -638,6 +642,7 @@ describe('getInterface', () => {
name: 'foo',
},
id,
context: null,
},
},
},
Expand Down Expand Up @@ -680,6 +685,7 @@ describe('getInterface', () => {
value: 'bar',
},
id,
context: null,
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe('getCreateInterfaceImplementation', () => {
'SnapInterfaceController:createInterface',
MOCK_SNAP_ID,
content,
undefined,
);

expect(result.content).toStrictEqual(getJsxElementFromComponent(content));
Expand Down

0 comments on commit 196e10d

Please sign in to comment.