mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 18:26:16 +01:00
Fixed unit test
This commit is contained in:
@@ -179,16 +179,7 @@ describe("auth actions", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should dispatch fetch me unauthorized", () => {
|
it("should dispatch fetch me unauthorized", () => {
|
||||||
fetchMock.getOnce("/api/v2/me", {
|
fetchMock.getOnce("/api/v2/me", 401);
|
||||||
status: 401,
|
|
||||||
headers: {
|
|
||||||
"content-type": "application/vnd.scmm-error+json;v=2"
|
|
||||||
},
|
|
||||||
body: {
|
|
||||||
transactionId: "123",
|
|
||||||
message: "So nicht Freundchen",
|
|
||||||
context: {}
|
|
||||||
}});
|
|
||||||
|
|
||||||
const expectedActions = [
|
const expectedActions = [
|
||||||
{ type: FETCH_ME_PENDING },
|
{ type: FETCH_ME_PENDING },
|
||||||
|
|||||||
Reference in New Issue
Block a user