Skip to content

Commit

Permalink
chore: Add link to notification example (#2915)
Browse files Browse the repository at this point in the history
Adds an inline link to the notification example, this is helpful for
testing purposes.

Progresses #2914
  • Loading branch information
FrederikBolding authored Nov 29, 2024
1 parent 0fe7eda commit cadfe3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "FxFEoTtrqrgcIixfoilv0YsEofcugLh1ZNLpz1tz/us=",
"shasum": "SELpk82JtBQolxOnwrXlAG8OCIfDSP8tc1j7FZzA5ps=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/notifications/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('onRpcRequest', () => {

expect(response).toRespondWith(null);
expect(response).toSendNotification(
'Hello from within MetaMask!',
'Hello from within MetaMask! [This](https://snaps.metamask.io/) is a what a link looks like.',
NotificationType.InApp,
);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/notifications/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ request }) => {
// We're using the `NotificationType` enum here, but you can also use
// the string values directly, e.g. `type: 'inApp'`.
type: NotificationType.InApp,
message: `Hello from within MetaMask!`,
message: `Hello from within MetaMask! [This](https://snaps.metamask.io/) is a what a link looks like.`,
},
});

Expand Down

0 comments on commit cadfe3c

Please sign in to comment.