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