@@ -127,7 +127,6 @@ describe('getHighestPrioritySubscription', () => {
127127
128128 const result = await getHighestPrioritySubscription ( 'user-1' )
129129
130- // Enterprise (org) always wins over Pro (personal).
131130 expect ( result ?. id ) . toBe ( 'sub-org-enterprise' )
132131 } )
133132
@@ -147,7 +146,7 @@ describe('getHighestPrioritySubscription', () => {
147146
148147 it ( 'returns the personal sub and skips org follow-ups when there are no memberships' , async ( ) => {
149148 queue ( 'subscription' , [ personalPro ( 'user-1' ) ] )
150- queue ( 'member' , [ ] ) // no org memberships
149+ queue ( 'member' , [ ] )
151150
152151 const result = await getHighestPrioritySubscription ( 'user-1' )
153152
@@ -159,18 +158,18 @@ describe('getHighestPrioritySubscription', () => {
159158 } )
160159
161160 it ( 'returns null when neither personal nor org subscriptions exist' , async ( ) => {
162- queue ( 'subscription' , [ ] ) // no personal subs
163- queue ( 'member' , [ ] ) // no memberships
161+ queue ( 'subscription' , [ ] )
162+ queue ( 'member' , [ ] )
164163
165164 const result = await getHighestPrioritySubscription ( 'user-1' )
166165
167166 expect ( result ) . toBeNull ( )
168167 } )
169168
170169 it ( 'excludes orphaned org memberships whose organization row no longer exists' , async ( ) => {
171- queue ( 'subscription' , [ ] ) // no personal subs
170+ queue ( 'subscription' , [ ] )
172171 queue ( 'member' , [ { organizationId : 'ghost-org' } ] ) // membership points at a deleted org
173- queue ( 'organization' , [ ] ) // org-existence returns nothing -> orphaned
172+ queue ( 'organization' , [ ] )
174173
175174 const result = await getHighestPrioritySubscription ( 'user-1' )
176175
@@ -184,7 +183,7 @@ describe('getHighestPrioritySubscription', () => {
184183 it ( 'falls back to the personal sub when the only org is orphaned' , async ( ) => {
185184 queue ( 'subscription' , [ personalPro ( 'user-1' ) ] )
186185 queue ( 'member' , [ { organizationId : 'ghost-org' } ] )
187- queue ( 'organization' , [ ] ) // orphaned org
186+ queue ( 'organization' , [ ] )
188187
189188 const result = await getHighestPrioritySubscription ( 'user-1' )
190189
0 commit comments