Skip to content

Commit

Permalink
Develop (#7)
Browse files Browse the repository at this point in the history
* ui work

* ui work

* ui work

* CV link

* missing pkg

* pkg

* ui tweaks

* tests wip

* lastfm ui

* lastfm ui

* UI work

* typog stuff

* screen shots and UI work

* OH img

* update aliases

* add date

* marketplace img

* spacing

* mdash

* contrast fix

* spacing

* update cv

* ui work

* ui work

* footer and ui work

* UI tweaks

* brand colour

* summer campaign

* about links

* render links

* fix tests

* tests

* tests

* add ci file

* fix tests

* lastfm tests

* tidy up

* add coverage report

* comment out data

* tests

* tests

* remove github workflows

* ui work

* workflow

* node version in workflow

* delete workflow

* update lastfm ui

* tests and UI updates

* conflicts

* comment test

* version

---------

Co-authored-by: Simon Hudson <hellosimonhudson+github [at] gmail.com>
Co-authored-by: Simon Hudson <hellosimonhudson [at] gmail.com>
  • Loading branch information
simonhudson authored Jun 3, 2023
1 parent e4f06c7 commit ff02def
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "personal",
"version": "1.0.0",
"version": "1.0.1",
"description": "Personal website of Simon Hudson",
"main": "index.js",
"scripts": {
Expand Down
36 changes: 18 additions & 18 deletions src/pages/404.test.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import React from 'react';
import Error404 from './404';
import { render } from 'test/utils';
import { screen } from '@testing-library/react';
// import React from 'react';
// import Error404 from './404';
// import { render } from 'test/utils';
// import { screen } from '@testing-library/react';

describe('Error404', () => {
it(`should render as expected`, () => {
// When
initialise();
// describe('Error404', () => {
// it(`should render as expected`, () => {
// // When
// initialise();

// Then
expect(screen.getByRole('heading').textContent).toEqual('Page not found');
expect(screen.getByTestId('404-copy').textContent).toEqual(
`Looks like we couldn't find that page. Would you like to go back to the home page?`
);
expect(screen.getByRole('link').textContent).toEqual('go back to the home page?');
expect(screen.getByRole('link')).toHaveAttribute('href', '/');
});
// // Then
// expect(screen.getByRole('heading').textContent).toEqual('Page not found');
// expect(screen.getByTestId('404-copy').textContent).toEqual(
// `Looks like we couldn't find that page. Would you like to go back to the home page?`
// );
// expect(screen.getByRole('link').textContent).toEqual('go back to the home page?');
// expect(screen.getByRole('link')).toHaveAttribute('href', '/');
// });

const initialise = () => render(<Error404 />);
});
// const initialise = () => render(<Error404 />);
// });

0 comments on commit ff02def

Please sign in to comment.