Skip to content

Commit cadfe3c

Browse files
chore: Add link to notification example (#2915)
Adds an inline link to the notification example, this is helpful for testing purposes. Progresses #2914
1 parent 0fe7eda commit cadfe3c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/examples/packages/notifications/snap.manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snaps.git"
88
},
99
"source": {
10-
"shasum": "FxFEoTtrqrgcIixfoilv0YsEofcugLh1ZNLpz1tz/us=",
10+
"shasum": "SELpk82JtBQolxOnwrXlAG8OCIfDSP8tc1j7FZzA5ps=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",

packages/examples/packages/notifications/src/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('onRpcRequest', () => {
3232

3333
expect(response).toRespondWith(null);
3434
expect(response).toSendNotification(
35-
'Hello from within MetaMask!',
35+
'Hello from within MetaMask! [This](https://snaps.metamask.io/) is a what a link looks like.',
3636
NotificationType.InApp,
3737
);
3838
});

packages/examples/packages/notifications/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ request }) => {
2424
// We're using the `NotificationType` enum here, but you can also use
2525
// the string values directly, e.g. `type: 'inApp'`.
2626
type: NotificationType.InApp,
27-
message: `Hello from within MetaMask!`,
27+
message: `Hello from within MetaMask! [This](https://snaps.metamask.io/) is a what a link looks like.`,
2828
},
2929
});
3030

0 commit comments

Comments
 (0)