import { Context , setup } from '../../setup' ; describe ( 'Query url debug' , ( ) => { const context = new Context ( ) ; setup ( context ) ; it ( `Item url` , ( ) => { const url = context . deliveryClient . item < any > ( 'warrior' ) . getUrl ( ) ; expect ( url ) . toContain ( 'items/warrior' ) ; } ) ; it ( `Items url` , ( ) => { const url = context . deliveryClient . items < any > ( ) . getUrl ( ) ; expect ( url ) . toContain ( 'items' ) ; } ) ; it ( `Taxonomy url` , ( ) => { const url = context . deliveryClient . taxonomy ( 'taxonomy_element' ) . getUrl ( ) ; expect ( url ) . toContain ( 'taxonomies/taxonomy_element' ) ; } ) ; it ( `Taxonomies url` , ( ) => { const url = context . deliveryClient . taxonomies ( ) . getUrl ( ) ; expect ( url ) . toContain ( 'taxonomies' ) ; } ) ; it ( `Type url` , ( ) => { const url = context . deliveryClient . type ( 'movie' ) . getUrl ( ) ; expect ( url ) . toContain ( 'types/movie' ) ; } ) ; it ( `Types url` , ( ) => { const url = context . deliveryClient . types ( ) . getUrl ( ) ; expect ( url ) . toContain ( 'types' ) ; } ) ; it ( `Element url` , ( ) => { const url = context . deliveryClient . element ( 'movie' , 'title' ) . getUrl ( ) ; expect ( url ) . toContain ( 'types/movie/elements/title' ) ; } ) ; } ) ;