Skip to content

Commit

Permalink
Merge pull request #11747 from qmonmert/testdescribeeach
Browse files Browse the repository at this point in the history
Simplify tests: uses describe.each
  • Loading branch information
murdos authored Jan 18, 2025
2 parents f08a2b0 + 27aebbc commit 183be03
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/test/webapp/unit/router/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,19 +205,9 @@ const repositoryWithModuleParameters = (): ModuleParametersRepositoryStub => {
};

describe('Router', () => {
describe('Navigation on LandscapeVue', () => {
it('should navigate on LandscapeVue when the URL is /', async () => {
router.push('/');

await router.isReady();

const wrapper = wrap();

expect(wrapper.html()).toContain('jhlite-landscape-loader');
});

it('should navigate on LandscapeVue when the URL is /landscape', async () => {
router.push('/landscape');
describe.each([['/'], ['/landscape']])('Navigation on LandscapeVue', url => {
it(`should navigate on LandscapeVue when the URL is ${url}`, async () => {
router.push(url);

await router.isReady();

Expand Down

0 comments on commit 183be03

Please sign in to comment.