Skip to content

Commit

Permalink
[ONL-7918] fix broken tests due to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raulwwq0 committed Sep 21, 2023
1 parent 23d7815 commit ebd210d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/ec-navigation-link/ec-navigation-link.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import EcNavigationLink from './ec-navigation-link.vue';
describe('EcNavigationLink', () => {
it('should throw an error if prop text was not given', () => {
withMockedConsole((errorSpy, warnSpy) => {
mount(EcNavigationLink);
mount(EcNavigationLink, {
props: {
iconName: 'Random text',
},
});
expect(warnSpy).toHaveBeenCalledTimes(2);
expect(warnSpy.mock.calls[0][0]).toContain('Missing required prop: "text"');
});
Expand All @@ -16,6 +20,7 @@ describe('EcNavigationLink', () => {
withMockedConsole((errorSpy, warnSpy) => {
mount(EcNavigationLink, {
props: {
iconName: 'Random text',
text: 'Random text',
},
});
Expand Down

0 comments on commit ebd210d

Please sign in to comment.