Add integration test for Board component

This commit is contained in:
riggraz
2019-09-03 18:37:27 +02:00
parent 88096b2262
commit 4a1378988a
5 changed files with 151 additions and 6 deletions

View File

@@ -85,7 +85,7 @@ class NewPost extends React.Component<Props, State> {
}
try {
let res = await fetch('http://localhost:3000/posts', {
let res = await fetch('/posts', {
method: 'POST',
headers: {
Accept: 'application/json',
@@ -139,7 +139,7 @@ class NewPost extends React.Component<Props, State> {
{ showForm ? 'Cancel' : 'Submit feedback' }
</button>
:
<a href="http://localhost:3000/users/sign_in" className="btn btn-dark">
<a href="/users/sign_in" className="btn btn-dark">
Log in / Sign up
</a>
}