mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 01:15:44 +01:00
remove test that got wrong after modifying state and remove unneccessary console logging
This commit is contained in:
@@ -224,8 +224,6 @@ export function createPermission(
|
|||||||
callback?: () => void
|
callback?: () => void
|
||||||
) {
|
) {
|
||||||
return function(dispatch: Dispatch) {
|
return function(dispatch: Dispatch) {
|
||||||
console.log("createPermission aufruf");
|
|
||||||
console.log(callback);
|
|
||||||
dispatch(createPermissionPending(permission, namespace, repoName));
|
dispatch(createPermissionPending(permission, namespace, repoName));
|
||||||
return apiClient
|
return apiClient
|
||||||
.post(
|
.post(
|
||||||
@@ -234,9 +232,7 @@ export function createPermission(
|
|||||||
CONTENT_TYPE
|
CONTENT_TYPE
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
console.log("then Pfad");
|
|
||||||
dispatch(createPermissionSuccess(permission, namespace, repoName));
|
dispatch(createPermissionSuccess(permission, namespace, repoName));
|
||||||
console.log(callback);
|
|
||||||
if (callback) {
|
if (callback) {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -470,7 +470,7 @@ describe("permissions reducer", () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should add permission", () => {
|
/*it("should add permission", () => { //changing state had to be removed because of errors
|
||||||
const oldState = {
|
const oldState = {
|
||||||
"hitchhiker/puzzle42": {
|
"hitchhiker/puzzle42": {
|
||||||
entries: [hitchhiker_puzzle42Permission_user_eins]
|
entries: [hitchhiker_puzzle42Permission_user_eins]
|
||||||
@@ -495,7 +495,7 @@ describe("permissions reducer", () => {
|
|||||||
expect(newState["hitchhiker/puzzle42"]).toEqual(
|
expect(newState["hitchhiker/puzzle42"]).toEqual(
|
||||||
expectedState["hitchhiker/puzzle42"]
|
expectedState["hitchhiker/puzzle42"]
|
||||||
);
|
);
|
||||||
});
|
});*/
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("permissions selectors", () => {
|
describe("permissions selectors", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user