diff --git a/Part_5/bloglist-frontend/src/components/BlogForm.js b/Part_5/bloglist-frontend/src/components/BlogForm.js index b8c2846..d96e3d9 100644 --- a/Part_5/bloglist-frontend/src/components/BlogForm.js +++ b/Part_5/bloglist-frontend/src/components/BlogForm.js @@ -24,17 +24,17 @@ const BlogForm = ({ createBlog }) => {
Title: - setTitle(target.value)} /> + setTitle(target.value)} />
Author: - setAuthor(target.value)} /> + setAuthor(target.value)} />
URL: - setUrl(target.value)} /> + setUrl(target.value)} />
diff --git a/Part_5/bloglist-frontend/src/tests/Blog.test.js b/Part_5/bloglist-frontend/src/tests/Blog.test.js index 24e5ced..beb5d52 100644 --- a/Part_5/bloglist-frontend/src/tests/Blog.test.js +++ b/Part_5/bloglist-frontend/src/tests/Blog.test.js @@ -1,5 +1,5 @@ import React from 'react' -import { fireEvent, render, screen } from '@testing-library/react' +import { render, screen } from '@testing-library/react' import '@testing-library/jest-dom/extend-expect' import userEvent from '@testing-library/user-event' import Blog from '../components/Blog' diff --git a/Part_5/bloglist-frontend/src/tests/BlogForm.test.js b/Part_5/bloglist-frontend/src/tests/BlogForm.test.js new file mode 100644 index 0000000..782ffa6 --- /dev/null +++ b/Part_5/bloglist-frontend/src/tests/BlogForm.test.js @@ -0,0 +1,28 @@ +import React from 'react' +import { render, screen } from '@testing-library/react' +import '@testing-library/jest-dom/extend-expect' +import userEvent from '@testing-library/user-event' +import BlogForm from '../components/BlogForm' + +describe('