Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaam committed Aug 23, 2024
1 parent bc7a26c commit 65152fb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/stores/useSocialMediaStore/useSocialMediaStore.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ vi.mock('~services/api/social-media/social-media', () => ({
fetch: vi.fn().mockResolvedValue([
{ icon: 'discord-icon', id: 'DISCORD_EXAMPLE_ID', name: 'Discord' },
{ icon: 'twitter-icon', id: 'TWITTER_EXAMPLE_ID', name: 'Twitter' },
{
icon: 'favorite-icon',
id: 'FAVORITE_ACCOUNTS',
name: 'Favorite Accounts',
},
]),
},
}));
Expand Down Expand Up @@ -75,6 +80,14 @@ describe('useSocialMediaStore', () => {
name: 'Discord',
},
],
[
'FAVORITE_ACCOUNTS',
{
icon: 'favorite-icon',
id: 'FAVORITE_ACCOUNTS',
name: 'Favorite Accounts',
},
],
[
'TWITTER_EXAMPLE_ID',
{
Expand Down Expand Up @@ -104,6 +117,7 @@ describe('useSocialMediaStore', () => {
valid: true,
},
],
FAVORITE_ACCOUNTS: [],
TWITTER_EXAMPLE_ID: [
{
avatar: 'https://example.com/image2.jpg',
Expand Down

0 comments on commit 65152fb

Please sign in to comment.