richie-education 2.25.0-b2.dev25 → 2.25.0-b2.dev26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -94,11 +94,11 @@ describe('OrganizationContractFrame', () => {
94
94
  user: true,
95
95
  queriesCallback: (queries) => {
96
96
  // Push contract and orders queries
97
- queries.push(QueryStateFactory(['user', 'contracts'], { data: [] }));
97
+ queries.push(QueryStateFactory(['user', 'organization_contracts'], { data: [] }));
98
98
  },
99
99
  });
100
100
 
101
- let contractsQueryState = client.getQueryState(['user', 'contracts']);
101
+ let contractsQueryState = client.getQueryState(['user', 'organization_contracts']);
102
102
  expect(contractsQueryState?.isInvalidated).toBe(false);
103
103
 
104
104
  await act(async () => {
@@ -126,7 +126,7 @@ describe('OrganizationContractFrame', () => {
126
126
 
127
127
  // onDone should be tweaked to invalidate the user orders and contracts queries
128
128
  // and passed down to AbstractContractFrame
129
- contractsQueryState = client.getQueryState(['user', 'contracts']);
129
+ contractsQueryState = client.getQueryState(['user', 'organization_contracts']);
130
130
  expect(contractsQueryState?.isInvalidated).toBe(true);
131
131
  expect(handleDone).toHaveBeenCalledTimes(1);
132
132
 
@@ -158,11 +158,11 @@ describe('OrganizationContractFrame', () => {
158
158
  user: true,
159
159
  queriesCallback: (queries) => {
160
160
  // Push contract and orders queries
161
- queries.push(QueryStateFactory(['user', 'contracts'], { data: [] }));
161
+ queries.push(QueryStateFactory(['user', 'organization_contracts'], { data: [] }));
162
162
  },
163
163
  });
164
164
 
165
- let contractsQueryState = client.getQueryState(['user', 'contracts']);
165
+ let contractsQueryState = client.getQueryState(['user', 'organization_contracts']);
166
166
  expect(contractsQueryState?.isInvalidated).toBe(false);
167
167
 
168
168
  await act(async () => {
@@ -191,7 +191,7 @@ describe('OrganizationContractFrame', () => {
191
191
 
192
192
  // onDone should be tweaked to invalidate the user orders and contracts queries
193
193
  // and passed down to AbstractContractFrame
194
- contractsQueryState = client.getQueryState(['user', 'contracts']);
194
+ contractsQueryState = client.getQueryState(['user', 'organization_contracts']);
195
195
  expect(contractsQueryState?.isInvalidated).toBe(true);
196
196
  expect(handleDone).toHaveBeenCalledTimes(1);
197
197
 
@@ -45,7 +45,7 @@ const OrganizationContractFrame = ({ organizationId, contractIds, onDone, ...pro
45
45
  };
46
46
 
47
47
  const onDoneWithInvalidation = () => {
48
- queryClient.invalidateQueries({ queryKey: ['user', 'contracts'] });
48
+ queryClient.invalidateQueries({ queryKey: ['user', 'organization_contracts'] });
49
49
  onDone?.();
50
50
  };
51
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "richie-education",
3
- "version": "2.25.0-b2.dev25",
3
+ "version": "2.25.0-b2.dev26",
4
4
  "description": "A CMS to build learning portals for Open Education",
5
5
  "main": "sandbox/manage.py",
6
6
  "scripts": {