introduce permission type without links

This commit is contained in:
Maren Süwer
2018-08-30 12:30:18 +02:00
parent 2e16186034
commit 429bb9f522
5 changed files with 20 additions and 11 deletions

View File

@@ -40,6 +40,9 @@ import reducer, {
} from "./permissions";
import type { Permission, PermissionCollection } from "../types/Permissions";
const namespace = "hitchhiker";
const repoName = "puzzle42";
const hitchhiker_puzzle42Permission_user_eins: Permission = {
name: "user_eins",
type: "READ",
@@ -115,7 +118,7 @@ describe("permission fetch", () => {
{
type: FETCH_PERMISSIONS_PENDING,
payload: {
namespace: "hitchhiker",
namespace: namespace,
repoName: "puzzle42"
},
itemId: "hitchhiker/puzzle42"