import { convertSavedObjectToSpace } from './convert_saved_object_to_space' ; describe ( 'convertSavedObjectToSpace' , ( ) => { it ( 'converts a saved object representation to a Space object' , ( ) => { const savedObject = { id : 'foo' , attributes : { name : 'Foo Space' , description : 'no fighting' , _reserved : false , } , } ; expect ( convertSavedObjectToSpace ( savedObject ) ) . toEqual ( { id : 'foo' , name : 'Foo Space' , description : 'no fighting' , _reserved : false , } ) ; } ) ; } ) ;