-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
f2c9b89
to
40588e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I've left minor comments ⭐
cy.intercept( | ||
{ | ||
method: HttpMethod.POST, | ||
url: new RegExp(`${API_HOST}/${GET_FAVORITE_ITEMS_ROUTE}/${ID_FORMAT}`), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't have to be changes, but if possible you can use the API endpoints from query-client, so it doesn't break if we change the endpoint route.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that the endpoint builder takes a UUID to build the url, and the ID_FORMAT is a string
cy.intercept( | ||
{ | ||
method: HttpMethod.DELETE, | ||
url: new RegExp(`${API_HOST}/${GET_FAVORITE_ITEMS_ROUTE}/${ID_FORMAT}`), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
package.json
Outdated
@@ -147,7 +147,8 @@ | |||
"nth-check": "2.1.1", | |||
"react-error-overlay": "6.0.11", | |||
"@types/react": "17.0.62", | |||
"@svgr/webpack": "6.5.1" | |||
"@svgr/webpack": "6.5.1", | |||
"@graasp/sdk": "github:graasp/graasp-sdk#refactor-favorite" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to change your branches ;)
No description provided.