use me link of index resource

This commit is contained in:
Maren Süwer
2018-10-11 10:26:54 +02:00
parent 8b7dcc379b
commit ae92842763
5 changed files with 27 additions and 17 deletions

View File

@@ -93,6 +93,14 @@ describe("auth actions", () => {
headers: { "content-type": "application/json" }
});
fetchMock.getOnce("/api/v2/", {
_links: {
me: {
href: "/me"
}
}
});
const expectedActions = [
{ type: LOGIN_PENDING },
{ type: LOGIN_SUCCESS, payload: me }