import { makeFakeXAspect } from './_fake_x_aspect' ; describe ( 'makeFakeXAspect' , function ( ) { it ( 'creates an object that looks like an aspect' , function ( ) { const aspect = makeFakeXAspect ( ) ; expect ( aspect ) . toHaveProperty ( 'accessor' , - 1 ) ; expect ( aspect ) . toHaveProperty ( 'title' , 'All docs' ) ; expect ( aspect ) . toHaveProperty ( 'format' ) ; expect ( aspect ) . toHaveProperty ( 'params' ) ; expect ( aspect . params ) . toHaveProperty ( 'defaultValue' , '_all' ) ; } ) ; } ) ;