@@ -30,8 +30,7 @@ describe('License: verifyLicense', () => {
3030 verifyLicense ( {
3131 releaseInfo : '__RELEASE_INFO__' ,
3232 licenseKey,
33- acceptedScopes : [ 'pro' , 'premium' ] ,
34- productLine : 'data-grid' ,
33+ packageName : 'x-data-grid-pro' ,
3534 } ) . status ,
3635 ) . to . throw ( 'MUI X: The release information is invalid. Not able to validate license.' ) ;
3736 } ) ;
@@ -42,8 +41,7 @@ describe('License: verifyLicense', () => {
4241 verifyLicense ( {
4342 releaseInfo : RELEASE_INFO ,
4443 licenseKey,
45- acceptedScopes : [ 'pro' , 'premium' ] ,
46- productLine : 'data-grid' ,
44+ packageName : 'x-data-grid-pro' ,
4745 } ) . status ,
4846 ) . to . equal ( LICENSE_STATUS . Valid ) ;
4947 } ) ;
@@ -62,8 +60,7 @@ describe('License: verifyLicense', () => {
6260 verifyLicense ( {
6361 releaseInfo : RELEASE_INFO ,
6462 licenseKey : expiredLicenseKey ,
65- acceptedScopes : [ 'pro' , 'premium' ] ,
66- productLine : 'data-grid' ,
63+ packageName : 'x-data-grid-pro' ,
6764 } ) . status ,
6865 ) . to . equal ( LICENSE_STATUS . ExpiredVersion ) ;
6966 } ) ;
@@ -75,8 +72,7 @@ describe('License: verifyLicense', () => {
7572 releaseInfo : RELEASE_INFO ,
7673 licenseKey :
7774 'b43ff5f9ac93f021855ff59ff0ba5220TkFNRTpNYC1VSSBTQVMsREVWRUxPUEVSX0NPVU5UPTEwLEVYUElSWT0xNTkxNzIzMDY3MDQyLFZFUlNJT049MS4yLjM' ,
78- acceptedScopes : [ 'pro' , 'premium' ] ,
79- productLine : 'data-grid' ,
75+ packageName : 'x-data-grid-pro' ,
8076 } ) . status ,
8177 ) . to . equal ( LICENSE_STATUS . Invalid ) ;
8278 } ) ;
@@ -106,8 +102,7 @@ describe('License: verifyLicense', () => {
106102 verifyLicense ( {
107103 releaseInfo : '__RELEASE_INFO__' ,
108104 licenseKey : licenseKeyPro ,
109- acceptedScopes : [ 'pro' , 'premium' ] ,
110- productLine : 'data-grid' ,
105+ packageName : 'x-data-grid-pro' ,
111106 } ) . status ,
112107 ) . to . throw ( 'MUI X: The release information is invalid. Not able to validate license.' ) ;
113108 } ) ;
@@ -119,8 +114,7 @@ describe('License: verifyLicense', () => {
119114 verifyLicense ( {
120115 releaseInfo : RELEASE_INFO ,
121116 licenseKey : licenseKeyPro ,
122- acceptedScopes : [ 'pro' , 'premium' ] ,
123- productLine : 'data-grid' ,
117+ packageName : 'x-data-grid-pro' ,
124118 } ) . status ,
125119 ) . to . equal ( LICENSE_STATUS . Valid ) ;
126120 } ) ;
@@ -131,8 +125,7 @@ describe('License: verifyLicense', () => {
131125 verifyLicense ( {
132126 releaseInfo : RELEASE_INFO ,
133127 licenseKey : licenseKeyPremium ,
134- acceptedScopes : [ 'premium' ] ,
135- productLine : 'data-grid' ,
128+ packageName : 'x-data-grid-premium' ,
136129 } ) . status ,
137130 ) . to . equal ( LICENSE_STATUS . Valid ) ;
138131 } ) ;
@@ -143,8 +136,7 @@ describe('License: verifyLicense', () => {
143136 verifyLicense ( {
144137 releaseInfo : RELEASE_INFO ,
145138 licenseKey : licenseKeyPro ,
146- acceptedScopes : [ 'premium' ] ,
147- productLine : 'data-grid' ,
139+ packageName : 'x-data-grid-premium' ,
148140 } ) . status ,
149141 ) . to . equal ( LICENSE_STATUS . OutOfScope ) ;
150142 } ) ;
@@ -165,8 +157,7 @@ describe('License: verifyLicense', () => {
165157 verifyLicense ( {
166158 releaseInfo : RELEASE_INFO ,
167159 licenseKey : expiredLicenseKey ,
168- acceptedScopes : [ 'pro' , 'premium' ] ,
169- productLine : 'data-grid' ,
160+ packageName : 'x-data-grid-pro' ,
170161 } ) . status ,
171162 ) . to . equal ( LICENSE_STATUS . Valid ) ;
172163 } ) ;
@@ -184,8 +175,7 @@ describe('License: verifyLicense', () => {
184175 verifyLicense ( {
185176 releaseInfo : RELEASE_INFO ,
186177 licenseKey : expiredLicenseKey ,
187- acceptedScopes : [ 'pro' , 'premium' ] ,
188- productLine : 'data-grid' ,
178+ packageName : 'x-data-grid-pro' ,
189179 } ) . status ,
190180 ) . to . equal ( LICENSE_STATUS . ExpiredAnnualGrace ) ;
191181 } ) ;
@@ -204,8 +194,7 @@ describe('License: verifyLicense', () => {
204194 verifyLicense ( {
205195 releaseInfo : RELEASE_INFO ,
206196 licenseKey : expiredLicenseKey ,
207- acceptedScopes : [ 'pro' , 'premium' ] ,
208- productLine : 'data-grid' ,
197+ packageName : 'x-data-grid-pro' ,
209198 } ) . status ,
210199 ) . to . equal ( LICENSE_STATUS . ExpiredAnnual ) ;
211200 } ) ;
@@ -223,8 +212,7 @@ describe('License: verifyLicense', () => {
223212 verifyLicense ( {
224213 releaseInfo : RELEASE_INFO ,
225214 licenseKey : expiredLicenseKey ,
226- acceptedScopes : [ 'pro' , 'premium' ] ,
227- productLine : 'data-grid' ,
215+ packageName : 'x-data-grid-pro' ,
228216 } ) . status ,
229217 ) . to . equal ( LICENSE_STATUS . Valid ) ;
230218 } ) ;
@@ -237,8 +225,7 @@ describe('License: verifyLicense', () => {
237225 releaseInfo : RELEASE_INFO ,
238226 licenseKey :
239227 'b43ff5f9ac93f021855ff59ff0ba5220TkFNRTpNYC1VSSBTQVMsREVWRUxPUEVSX0NPVU5UPTEwLEVYUElSWT0xNTkxNzIzMDY3MDQyLFZFUlNJT049MS4yLjM' ,
240- acceptedScopes : [ 'pro' , 'premium' ] ,
241- productLine : 'data-grid' ,
228+ packageName : 'x-data-grid-pro' ,
242229 } ) . status ,
243230 ) . to . equal ( LICENSE_STATUS . Invalid ) ;
244231 } ) ;
@@ -259,8 +246,7 @@ describe('License: verifyLicense', () => {
259246 verifyLicense ( {
260247 releaseInfo : RELEASE_INFO ,
261248 licenseKey : licenseKeyPro ,
262- acceptedScopes : [ 'pro' , 'premium' ] ,
263- productLine : 'data-grid' ,
249+ packageName : 'x-data-grid-pro' ,
264250 } ) . status ,
265251 ) . to . equal ( LICENSE_STATUS . Valid ) ;
266252 } ) ;
@@ -289,8 +275,7 @@ describe('License: verifyLicense', () => {
289275 verifyLicense ( {
290276 releaseInfo : RELEASE_INFO ,
291277 licenseKey : licenseKeyInitial ,
292- acceptedScopes : [ 'pro' , 'premium' ] ,
293- productLine : 'charts' ,
278+ packageName : 'x-charts-pro' ,
294279 } ) . status ,
295280 ) . to . equal ( LICENSE_STATUS . NotAvailableInInitialProPlan ) ;
296281 } ) ;
@@ -301,8 +286,7 @@ describe('License: verifyLicense', () => {
301286 verifyLicense ( {
302287 releaseInfo : RELEASE_INFO ,
303288 licenseKey : licenseKeyInitial ,
304- acceptedScopes : [ 'pro' , 'premium' ] ,
305- productLine : 'tree-view' ,
289+ packageName : 'x-tree-view-pro' ,
306290 } ) . status ,
307291 ) . to . equal ( LICENSE_STATUS . NotAvailableInInitialProPlan ) ;
308292 } ) ;
@@ -313,8 +297,7 @@ describe('License: verifyLicense', () => {
313297 verifyLicense ( {
314298 releaseInfo : RELEASE_INFO ,
315299 licenseKey : licenseKey2 ,
316- acceptedScopes : [ 'pro' , 'premium' ] ,
317- productLine : 'charts' ,
300+ packageName : 'x-charts-pro' ,
318301 } ) . status ,
319302 ) . to . equal ( LICENSE_STATUS . Valid ) ;
320303 } ) ;
@@ -325,8 +308,7 @@ describe('License: verifyLicense', () => {
325308 verifyLicense ( {
326309 releaseInfo : RELEASE_INFO ,
327310 licenseKey : licenseKey2 ,
328- acceptedScopes : [ 'pro' , 'premium' ] ,
329- productLine : 'tree-view' ,
311+ packageName : 'x-tree-view-pro' ,
330312 } ) . status ,
331313 ) . to . equal ( LICENSE_STATUS . Valid ) ;
332314 } ) ;
0 commit comments