Skip to content

Commit

Permalink
TET: Fix unit tests by removing next/router mock
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Aug 11, 2023
1 parent bb4e565 commit d81acc8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions frontend/tet/youth/src/__tests__/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import IndexPage from 'tet/youth/pages';

import getYouthTranslationsApi from './utils/i18n/get-youth-translations';

jest.mock('next/router');

describe('frontend/tet/youth/src/pages/index.tsx', () => {
const {
translations: { [DEFAULT_LANGUAGE]: translations },
Expand Down
2 changes: 0 additions & 2 deletions frontend/tet/youth/src/__tests__/postings.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import renderPage from 'tet/youth/__tests__/utils/components/render-page';
import Postings from 'tet/youth/pages';
import { fakeEventListYouth } from 'tet-shared/__tests__/utils/fake-objects';

jest.mock('next/router');

const postings = fakeEventListYouth(['Avustaja', 'Kirjasto']);

describe('frontend/tet/youth/src/pages/postings.tsx', () => {
Expand Down
2 changes: 0 additions & 2 deletions frontend/tet/youth/src/__tests__/show.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import React from 'react';
import renderComponent from 'tet/youth/__tests__/utils/components/render-component';
import ShowPostingPage from 'tet/youth/pages';

jest.mock('next/router');

describe('frontend/tet/youth/src/pages/postings/show.tsx', () => {
beforeAll(() => {
Object.defineProperty(window, 'matchMedia', {
Expand Down

0 comments on commit d81acc8

Please sign in to comment.