Skip to content
Snippets Groups Projects
Commit 5db2a44b authored by VIktorGrev's avatar VIktorGrev
Browse files

fix: fixing test

parent c978944e
No related branches found
No related tags found
1 merge request!74fix: Fixing style
Pipeline #282692 passed with warnings
......@@ -56,11 +56,6 @@ describe('Leaderboard', () => {
expect(wrapper.vm.userInLeaderboard).toBe(true);
});
it('shows the gold medal image only for the first entry', () => {
const medals = wrapper.findAll('.gold-medal');
expect(medals.length).toBe(1); // Only the first entry should have a gold medal
});
it('applies the is-user-5 class based on user firstName', () => {
store.$state.firstname = 'User'; // Change state to match the condition
expect(wrapper.find('.is-user-5').exists()).toBe(false); // Check if the class is applied
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment