mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Add integration test for Board component
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user