mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
Use Me-type
This commit is contained in:
@@ -166,13 +166,16 @@ describe("auth actions", () => {
|
||||
|
||||
it("should dispatch fetch me success", () => {
|
||||
fetchMock.getOnce("/scm/api/rest/v2/me", {
|
||||
body: { username: "sorbot" },
|
||||
body: { name: "sorbot", displayName: "Sorbot" },
|
||||
headers: { "content-type": "application/json" }
|
||||
});
|
||||
|
||||
const expectedActions = [
|
||||
{ type: FETCH_ME_REQUEST },
|
||||
{ type: FETCH_ME_SUCCESS, payload: { username: "sorbot" } }
|
||||
{
|
||||
type: FETCH_ME_SUCCESS,
|
||||
payload: { userName: "sorbot", displayName: "Sorbot" }
|
||||
}
|
||||
];
|
||||
|
||||
const store = mockStore({});
|
||||
|
||||
Reference in New Issue
Block a user