🎨 Reformat test assertions and slot content for improved readability
This commit is contained in:
@@ -87,7 +87,9 @@ describe('TournamentGrid', () => {
|
||||
|
||||
expect(wrapper.find('.status.empty').exists()).toBe(true);
|
||||
expect(wrapper.text()).toContain('No tournaments found');
|
||||
expect(wrapper.find('a[href="https://challonge.com"]').exists()).toBe(true);
|
||||
expect(wrapper.find('a[href="https://challonge.com"]').exists()).toBe(
|
||||
true
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -304,7 +306,9 @@ describe('TournamentGrid', () => {
|
||||
});
|
||||
|
||||
expect(wrapper.find('.load-more-section').exists()).toBe(true);
|
||||
expect(wrapper.find('.btn-secondary').text()).toBe('Load More Tournaments');
|
||||
expect(wrapper.find('.btn-secondary').text()).toBe(
|
||||
'Load More Tournaments'
|
||||
);
|
||||
});
|
||||
|
||||
it('hides load more button when hasNextPage is false', () => {
|
||||
@@ -375,7 +379,8 @@ describe('TournamentGrid', () => {
|
||||
expandedTournamentId: 'abc123'
|
||||
},
|
||||
slots: {
|
||||
'tournament-details': '<div class="custom-details">Custom Content</div>'
|
||||
'tournament-details':
|
||||
'<div class="custom-details">Custom Content</div>'
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user