Skip to content

Commit e5d63eb

Browse files
authoredApr 5, 2024··
test(clerk-js): Update snapshots of organization related tests (#3112)
1 parent 71ffa99 commit e5d63eb

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed
 

‎.changeset/short-onions-fold.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎packages/clerk-js/src/core/resources/OrganizationDomain.test.ts

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ describe('OrganizationDomain', () => {
1717
affiliation_email_address: 'some@clerk.com',
1818
created_at: 12345,
1919
updated_at: 5678,
20+
total_pending_invitations: 0,
21+
total_pending_suggestions: 0,
2022
});
2123

2224
expect(organization).toMatchSnapshot();
@@ -33,6 +35,8 @@ describe('OrganizationDomain', () => {
3335
affiliation_email_address: null,
3436
created_at: 12345,
3537
updated_at: 5678,
38+
total_pending_invitations: 0,
39+
total_pending_suggestions: 0,
3640
});
3741

3842
expect(organization).toMatchSnapshot();

‎packages/clerk-js/src/core/resources/OrganizationMembership.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ describe('OrganizationMembership', () => {
88
created_at: 12345,
99
updated_at: 5678,
1010
role: 'admin',
11+
permissions: [],
1112
organization: {
1213
id: 'test_org_id',
1314
image_url:

‎packages/clerk-js/src/core/resources/__snapshots__/OrganizationDomain.test.ts.snap

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ OrganizationDomain {
1111
"organizationId": "test_org_id",
1212
"pathRoot": "",
1313
"prepareAffiliationVerification": [Function],
14-
"totalPendingInvitations": undefined,
15-
"totalPendingSuggestions": undefined,
14+
"totalPendingInvitations": 0,
15+
"totalPendingSuggestions": 0,
1616
"updateEnrollmentMode": [Function],
1717
"verification": null,
1818
}
@@ -29,8 +29,8 @@ OrganizationDomain {
2929
"organizationId": "test_org_id",
3030
"pathRoot": "",
3131
"prepareAffiliationVerification": [Function],
32-
"totalPendingInvitations": undefined,
33-
"totalPendingSuggestions": undefined,
32+
"totalPendingInvitations": 0,
33+
"totalPendingSuggestions": 0,
3434
"updateEnrollmentMode": [Function],
3535
"verification": {
3636
"attempts": 1,

0 commit comments

Comments
 (0)
Please sign in to comment.