import { shallowReadonly , isReadonly } from "../reactive" ; describe ( "shalloeReadonly" , ( ) => { test ( "should not make non-reactive properties reactive" , ( ) => { const props = shallowReadonly ( { n : { foo : 1 } } ) ; expect ( isReadonly ( props ) ) . toBe ( true ) ; expect ( isReadonly ( props . n ) ) . toBe ( false ) ; } ) ; } ) ;