@@ -20,28 +20,28 @@ describe('Term class', () => {
2020 } ) ;
2121
2222 it ( 'should fetch the term by uid response when fetch method is called' , async ( ) => {
23- mockClient . onGet ( '/taxonomy-manager /taxonomy_testing/terms/term1' ) . reply ( 200 , termQueryFindResponseDataMock . terms [ 0 ] ) ; //TODO: change to /taxonomies
23+ mockClient . onGet ( '/taxonomies /taxonomy_testing/terms/term1' ) . reply ( 200 , termQueryFindResponseDataMock . terms [ 0 ] ) ;
2424
2525 const response = await term . fetch ( ) ;
2626 expect ( response ) . toEqual ( termQueryFindResponseDataMock . terms [ 0 ] ) ;
2727 } ) ;
2828
2929 it ( 'should fetch locales for a term when locales() is called' , async ( ) => {
30- mockClient . onGet ( '/taxonomy-manager /taxonomy_testing/terms/term1/locales' ) . reply ( 200 , termLocalesResponseDataMock . terms ) ; //TODO: change to /taxonomies
30+ mockClient . onGet ( '/taxonomies /taxonomy_testing/terms/term1/locales' ) . reply ( 200 , termLocalesResponseDataMock . terms ) ;
3131
3232 const response = await term . locales ( ) ;
3333 expect ( response ) . toEqual ( termLocalesResponseDataMock . terms ) ;
3434 } ) ;
3535
3636 it ( 'should fetch ancestors for a term when ancestors() is called' , async ( ) => {
37- mockClient . onGet ( '/taxonomy-manager /taxonomy_testing/terms/term1/ancestors' ) . reply ( 200 , termAncestorsResponseDataMock ) ;
37+ mockClient . onGet ( '/taxonomies /taxonomy_testing/terms/term1/ancestors' ) . reply ( 200 , termAncestorsResponseDataMock ) ;
3838
3939 const response = await term . ancestors ( ) ;
4040 expect ( response ) . toEqual ( termAncestorsResponseDataMock ) ;
4141 } ) ;
4242
4343 it ( 'should fetch descendants for a term when descendants() is called' , async ( ) => {
44- mockClient . onGet ( '/taxonomy-manager /taxonomy_testing/terms/term1/descendants' ) . reply ( 200 , termDescendantsResponseDataMock ) ;
44+ mockClient . onGet ( '/taxonomies /taxonomy_testing/terms/term1/descendants' ) . reply ( 200 , termDescendantsResponseDataMock ) ;
4545
4646 const response = await term . descendants ( ) ;
4747 expect ( response ) . toEqual ( termDescendantsResponseDataMock ) ;
0 commit comments