Skip to content

Commit e23d8ab

Browse files
committed
Fix tests and lint issue
1 parent 32118df commit e23d8ab

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

packages/examples/packages/get-entropy/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": "RAiYJUhEOg3GuNxpzlXbK6OVvBgLTtaS/R14t9oagY8=",
10+
"shasum": "JHgX6Yu2QH0wnVJ67t+IUxNpOvGOhOwWip2b6rI3F4A=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",

packages/examples/packages/get-entropy/src/index.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('onRpcRequest', () => {
3939
<Heading>Signature request</Heading>
4040
<Text>
4141
Do you want to sign the following message with Snap entropy, and the
42-
entropy source "{'Primary source'}"?
42+
entropy source "{'primary source'}"?
4343
</Text>
4444
<Copyable value="Hello, world!" />
4545
</Box>,
@@ -70,7 +70,7 @@ describe('onRpcRequest', () => {
7070
<Heading>Signature request</Heading>
7171
<Text>
7272
Do you want to sign the following message with Snap entropy, and the
73-
entropy source "{'Primary source'}"?
73+
entropy source "{'primary source'}"?
7474
</Text>
7575
<Copyable value="Hello, world!" />
7676
</Box>,

packages/snaps-simulation/src/methods/hooks/get-entropy-sources.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ describe('getGetEntropySourcesImplementation', () => {
66

77
expect(fn()).toStrictEqual([
88
{
9-
id: 'entropy-source-1',
10-
name: 'Entropy Source 1',
9+
id: 'default',
10+
name: 'Default Secret Recovery Phrase',
1111
type: 'mnemonic',
1212
primary: true,
1313
},
14+
{
15+
id: 'alternative',
16+
name: 'Alternative Secret Recovery Phrase',
17+
type: 'mnemonic',
18+
primary: false,
19+
},
1420
]);
1521
});
1622
});

packages/snaps-simulation/src/methods/hooks/get-mnemonic.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { mnemonicPhraseToBytes } from '@metamask/key-tree';
22

33
import { getGetMnemonicImplementation } from './get-mnemonic';
4-
import {
5-
DEFAULT_ALTERNATIVE_SRP,
6-
DEFAULT_SRP,
7-
} from '@metamask/snaps-simulation';
4+
import { DEFAULT_ALTERNATIVE_SRP, DEFAULT_SRP } from '../../constants';
85

96
describe('getGetMnemonicImplementation', () => {
107
it('returns the default mnemonic phrase', async () => {

0 commit comments

Comments
 (0)