Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
rphlmr committed Sep 30, 2024
1 parent bef389b commit a790fc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,7 @@ describe("Check all settle", () => {
[definePolicy("is not null", notNull), "not null"],
[definePolicy("is true", true)],
["post has comments", true],
["post has likes", () => true],
[guard.post.policy("my post"), { userId: "1", comments: [], status: "published" }],
[guard.post.policy("all my published posts"), { userId: "1", comments: [], status: "published" }],
]);
Expand All @@ -924,6 +925,7 @@ describe("Check all settle", () => {
"is not null": true,
"is true": true,
"post has comments": true,
"post has likes": true,
"my post": true,
"all my published posts": true,
});
Expand All @@ -932,6 +934,7 @@ describe("Check all settle", () => {
"is not null": boolean;
"is true": boolean;
"post has comments": boolean;
"post has likes": boolean;
"my post": boolean;
"all my published posts": boolean;
}>();
Expand Down

0 comments on commit a790fc4

Please sign in to comment.