Skip to content

Commit

Permalink
Add tests and update manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeRx committed Sep 30, 2024
1 parent 1fe494d commit 5173ebd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 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": "a4ckatLQF520ldhOihmMlYwbFv47gEzzwyDapvMzrxU=",
"shasum": "hvi0QzsvwnbiFtw2bTGJojg09b8Y/RAlmDm1/H3MaYk=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/browserify/snap.manifest.json
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": "MWLaGRft1gTEa/oIwtYisP2lo3+tGnx3XlFGb7dKppM=",
"shasum": "YWLgNvM8qJee2ZAhuSD3UcYdUqlQ7OX1cYgW8HYYiTI=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
7 changes: 7 additions & 0 deletions packages/snaps-sdk/src/jsx/validation.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,13 @@ describe('FieldStruct', () => {
</SelectorOption>
</Selector>
</Field>,
<Field label="foo">
<AccountSelector
name="foo"
chainIds={['eip155:1']}
selectedAddress="0x1234567890abcdef1234567890abcdef12345678"
/>
</Field>,
])('validates a field element', (value) => {
expect(is(value, FieldStruct)).toBe(true);
});
Expand Down

0 comments on commit 5173ebd

Please sign in to comment.