Skip to content

Commit 6906cc6

Browse files
Assert the projected id is undefined for a pending join request
The test already covered that an id-less policy survives the selector when it is a pending join request. Also assert that the projected id really is undefined, so the test pins the whole shape rather than just the join-request flag and the nonMemberDetails policyID. Co-authored-by: Linh Vo <linhvovan29546@users.noreply.github.com>
1 parent a50d8cb commit 6906cc6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tests/unit/PolicySelectorTest.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ describe('createWorkspaceListPoliciesSelector', () => {
294294
};
295295
const [item] = createWorkspaceListPoliciesSelector(userLogin)(policies);
296296
expect(item?.isJoinRequestPending).toBe(true);
297+
expect(item?.id).toBeUndefined();
297298
expect(item?.nonMemberDetails?.policyID).toBe('p1');
298299
});
299300

0 commit comments

Comments
 (0)