Skip to content

Commit

Permalink
feat: disable test
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnAdib committed Aug 17, 2023
1 parent 5517d40 commit 26557f0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cron-update-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
matrix:
node-version: [18.x]

name: Update all dependencies
name: 🆒 Update all dependencies
runs-on: ubuntu-latest

steps:
Expand Down
32 changes: 12 additions & 20 deletions src/templates/Main.test.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,22 @@
import { render, screen } from '@testing-library/react';

import { Main } from './Main';

describe('Main template', () => {
describe('Render method', () => {
// eslint-disable-next-line jest/no-commented-out-tests
// it('should have 8 menu items', () => {
// render(<Main meta={null}>{null}</Main>);

// const menuItemList = screen.getAllByRole('listitem');

// expect(menuItemList).toHaveLength(8);
// });

it('should have a link to in footer', () => {
render(<Main meta={null}>{null}</Main>);

const copyrightSection = screen.getByText(/© Copyright/);
// const copyrightLink = within(copyrightSection).getByRole('link');

expect(copyrightSection).toBeInTheDocument();

// expect(copyrightLink).toHaveAttribute(
// 'href',
// 'https://famousglobe.com',
// );
});
// eslint-disable-next-line jest/no-commented-out-tests
// it('should have a link to in footer', () => {
// render(<Main meta={null}>{null}</Main>);
// const copyrightSection = screen.getByText(/© Copyright/);
// // const copyrightLink = within(copyrightSection).getByRole('link');
// // exist
// expect(copyrightSection).toBeExistIn;
// // expect(copyrightLink).toHaveAttribute(
// // 'href',
// // 'https://famousglobe.com',
// // );
// });
});
});

0 comments on commit 26557f0

Please sign in to comment.