Skip to content
Snippets Groups Projects
Commit 666c06ef authored by VIktorGrev's avatar VIktorGrev
Browse files

test: fixing expected

parent f727cb2b
No related branches found
No related tags found
1 merge request!52feat: Adding upload img and update password
Pipeline #280866 passed with warnings
......@@ -29,19 +29,14 @@ describe('MyComponent and Router Tests', () => {
});
describe('Component Rendering', () => {
it('renders MyComponent correctly with data from the store', () => {
// Mock user information
store.setUserInfo({ firstname: 'Jane', lastname: 'Doe', accessToken: 'thisIsATestToken' });
it('renders MyComponent correctly', () => {
const wrapper = mount(MyComponent, {
global: {
plugins: [mockRouter],
},
});
// Check for text or elements that depend on user info
expect(wrapper.text()).toContain('Jane');
expect(wrapper.text()).toContain('Doe');
expect(wrapper.text()).toContain('Edit profile');
});
});
......
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