import { transformContributorAgent , transformContributors , } from '@weco/content/services/prismic/transformers/contributors' ; describe ( 'transformContributorAgent' , ( ) => { it ( 'transforms an organisation without a sameAs' , ( ) => { const contributor = transformContributorAgent ( { id : 'W3QzZykAACIAFwFt' , type : 'organisations' , tags : [ ] , slug : 'bloomsbury-festival' , lang : 'en-gb' , first_publication_date : '2018-08-15T14:06:50+0000' , last_publication_date : '2018-08-15T14:06:50+0000' , data : { name : [ { type : 'heading1' , text : 'Bloomsbury Festival' , spans : [ ] } ] , image : { dimensions : [ { width : 500 , height : 187 } ] , alt : null , copyright : null , url : 'https://images.prismic.io/wellcomecollection/941b71506cf51a7ee74dc46b8cd760e9de3d7ee7_bf2018-logo-web.jpg?auto=compress,format' , } , } , link_type : 'Document' , isBroken : false , } ) ; expect ( contributor . sameAs ) . toStrictEqual ( [ ] ) ; } ) ; } ) ; describe ( 'transformContributors' , ( ) => { it ( 'transforms a document without contributors' , ( ) => { const document = { title : [ { type : 'heading1' , text : 'Archives at Wellcome Collection' , spans : [ ] , } , ] , } ; const contributor = transformContributors ( document ) ; expect ( contributor ) . toStrictEqual ( [ ] ) ; } ) ; } ) ;