Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hmalik88 committed Oct 23, 2024
1 parent 4c84900 commit 6f40593
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/snaps-rpc-methods/src/restricted/dialog.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ describe('implementation', () => {
expect(hooks.createInterface).toHaveBeenCalledWith(
'foo',
content,
undefined,
ContentType.Dialog,
);
expect(hooks.requestUserApproval).toHaveBeenCalledTimes(1);
Expand Down Expand Up @@ -230,6 +231,7 @@ describe('implementation', () => {
expect(hooks.createInterface).toHaveBeenCalledWith(
'foo',
content,
undefined,
ContentType.Dialog,
);
expect(hooks.requestUserApproval).toHaveBeenCalledTimes(1);
Expand Down
4 changes: 2 additions & 2 deletions packages/snaps-simulation/src/methods/hooks/interface.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SnapInterfaceController } from '@metamask/snaps-controllers';
import { ContentType, text } from '@metamask/snaps-sdk';
import { text } from '@metamask/snaps-sdk';
import { getJsxElementFromComponent } from '@metamask/snaps-utils';
import { MOCK_SNAP_ID } from '@metamask/snaps-utils/test-utils';

Expand Down Expand Up @@ -36,7 +36,7 @@ describe('getCreateInterfaceImplementation', () => {
MOCK_SNAP_ID,
content,
undefined,
ContentType.Dialog,
undefined,
);

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

0 comments on commit 6f40593

Please sign in to comment.