Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeRx committed Apr 25, 2023
1 parent 19414fc commit 08213b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ui/components/app/flask/snap-authorship/snap-authorship.js
Expand Up @@ -172,7 +172,7 @@ const SnapAuthorship = ({ snapId, className, expanded = false, snap }) => {
marginTop={4}
>
<Text variant={TextVariant.bodyMdBold}>{t('version')}</Text>
<SnapVersion version={subjectMetadata?.version} url={url} />
<SnapVersion version={snap?.version} url={url} />
</Box>
</Box>
</Box>
Expand Down
7 changes: 1 addition & 6 deletions ui/pages/settings/flask/view-snap/view-snap.test.js
Expand Up @@ -48,12 +48,7 @@ describe('ViewSnap', () => {
// Snap version info
expect(getByText('v5.1.2')).toBeDefined();
// Enable Snap
expect(getByText('Enable snap')).toBeDefined();
expect(
getByText(
'Your installed snap will only have access to its permissions and run if it’s enabled.',
),
).toBeDefined();
expect(getByText('Enable')).toBeDefined();
expect(container.getElementsByClassName('toggle-button')?.length).toBe(1);
// Permissions
expect(getByText('Permissions')).toBeDefined();
Expand Down

0 comments on commit 08213b4

Please sign in to comment.