@@ -27,9 +27,8 @@ import { ANNOTATION_CHANGE_TYPE, BREAKING_CHANGE_TYPE, BUILD_TYPE, NON_BREAKING_
2727const  pkg  =  LocalRegistry . openPackage ( 'apihub' ) 
2828
2929describe ( 'Prefix Groups test' ,  ( )  =>  { 
30-   // this test uses too large sample (runs too long) 
31-   // and checks only number of operations, 
32-   // mostly useless 
30+ 
31+   // this test uses too large sample (runs too long) and checks only number of operations, mostly useless 
3332  // todo: remove this test 
3433  test . skip ( 'should compare prefix groups groups=v2,v3' ,  async  ( )  =>  { 
3534    // generate missing versions/apihub folder contents 
@@ -120,13 +119,14 @@ describe('Prefix Groups test', () => {
120119    //check operation ids 
121120    expect ( result ) . toEqual ( operationChangesMatcher ( [ 
122121      expect . objectContaining ( { 
123-         previousOperationId : 'removed-get' , 
122+         previousOperationId : 'api-v1- removed-get' , 
124123      } ) , 
125124      expect . objectContaining ( { 
126-         operationId : 'added-get' , 
125+         operationId : 'api-v2- added-get' , 
127126      } ) , 
128127      expect . objectContaining ( { 
129-         operationId : 'changed1-get' , 
128+         operationId : 'api-v2-changed1-get' , 
129+         previousOperationId : 'api-v1-changed1-get' , 
130130      } ) , 
131131    ] ) ) 
132132  } ) 
@@ -151,14 +151,14 @@ describe('Prefix Groups test', () => {
151151    //check operation ids 
152152    expect ( result ) . toEqual ( operationChangesMatcher ( [ 
153153      expect . objectContaining ( { 
154-         previousOperationId : 'removed-get' , 
154+         previousOperationId : 'api-v1- removed-get' , 
155155      } ) , 
156156      expect . objectContaining ( { 
157-         operationId : 'changed1-get' , 
158-         previousOperationId : 'changed1-get' , 
157+         operationId : 'api-v2- changed1-get' , 
158+         previousOperationId : 'api-v1- changed1-get' , 
159159      } ) , 
160160      expect . objectContaining ( { 
161-         operationId : 'added-get' , 
161+         operationId : 'api-v2- added-get' , 
162162      } ) , 
163163    ] ) ) 
164164  } ) 
@@ -202,14 +202,14 @@ describe('Prefix Groups test', () => {
202202    //check operation ids 
203203    expect ( result ) . toEqual ( operationChangesMatcher ( [ 
204204      expect . objectContaining ( { 
205-         previousOperationId : 'added -get' , 
205+         previousOperationId : 'api-v1-removed -get' , 
206206      } ) , 
207207      expect . objectContaining ( { 
208-         operationId : 'changed1-get' , 
209-         previousOperationId : 'changed1-get' , 
208+         operationId : 'api-v2- changed1-get' , 
209+         previousOperationId : 'api-v1- changed1-get' , 
210210      } ) , 
211211      expect . objectContaining ( { 
212-         operationId : 'removed -get' , 
212+         operationId : 'api-v2-added -get' , 
213213      } ) , 
214214    ] ) ) 
215215  } ) 
@@ -223,7 +223,7 @@ describe('Prefix Groups test', () => {
223223    //check operation ids 
224224    expect ( result ) . toEqual ( operationChangesMatcher ( [ 
225225      expect . objectContaining ( { 
226-         operationId : 'path1-post' , 
226+         operationId : 'api-v2- path1-post' , 
227227      } ) , 
228228    ] ) ) 
229229  } ) 
@@ -237,7 +237,7 @@ describe('Prefix Groups test', () => {
237237    //check operation ids 
238238    expect ( result ) . toEqual ( operationChangesMatcher ( [ 
239239      expect . objectContaining ( { 
240-         previousOperationId : 'path1-post' , 
240+         previousOperationId : 'api-v1- path1-post' , 
241241      } ) , 
242242    ] ) ) 
243243  } ) 
@@ -257,8 +257,8 @@ describe('Prefix Groups test', () => {
257257    //check operation ids 
258258    expect ( result ) . toEqual ( operationChangesMatcher ( [ 
259259      expect . objectContaining ( { 
260-         operationId : 'path1-get' , 
261-         previousOperationId : 'path1-get' , 
260+         operationId : 'api-v2- path1-get' , 
261+         previousOperationId : 'api-v1- path1-get' , 
262262      } ) , 
263263    ] ) ) 
264264  } ) 
@@ -276,8 +276,8 @@ describe('Prefix Groups test', () => {
276276    //check operation ids 
277277    expect ( result ) . toEqual ( operationChangesMatcher ( [ 
278278      expect . objectContaining ( { 
279-         operationId : 'users-id-posts-get' , 
280-         previousOperationId : 'users-userid-posts-get' , 
279+         operationId : 'api-v2- users-id-posts-get' , 
280+         previousOperationId : 'api-v1- users-userid-posts-get' , 
281281      } ) , 
282282    ] ) ) 
283283  } ) 
@@ -297,8 +297,8 @@ describe('Prefix Groups test', () => {
297297    //check operation ids 
298298    expect ( result ) . toEqual ( operationChangesMatcher ( [ 
299299      expect . objectContaining ( { 
300-         operationId : 'packages-get' , 
301-         previousOperationId : 'packages-get' , 
300+         operationId : 'api-v1000- packages-get' , 
301+         previousOperationId : 'api-v10- packages-get' , 
302302      } ) , 
303303    ] ) ) 
304304  } ) 
0 commit comments