Allow unlimited cloud websites for subscribed accounts

This commit is contained in:
Mike Cao committed 2026-06-08 17:20:20 -07:00
1 parent 264466191e
commit d2eafd68f7
2 files changed
+12

No files matched your search

+7
View File
@@ -9,6 +9,13 @@ describe('getCloudWebsiteLimit', () => {
test('limits accounts without a subscription to the free website limit', () => {
expect(getCloudWebsiteLimit(null)).toBe(CLOUD_FREE_WEBSITE_LIMIT);
expect(getCloudWebsiteLimit({ hasSubscription: false })).toBe(CLOUD_FREE_WEBSITE_LIMIT);
expect(getCloudWebsiteLimit({ hasSubscription: false, unlimitedWebsites: true })).toBe(
CLOUD_FREE_WEBSITE_LIMIT,
);
});
test('does not limit subscribed accounts with unlimited websites enabled', () => {
expect(getCloudWebsiteLimit({ hasSubscription: true, unlimitedWebsites: true })).toBeNull();
});
test('limits Pro accounts to the Pro website limit', () => {