export function testPostRequestOutcome ( actual , expected ) { expect ( actual ) . toEqual ( expected ) ; expect ( actual [ 'remoteState' ] ) . toEqual ( expected [ 'remoteState' ] ) ; expect ( actual . getCustomFields ( ) ) . toEqual ( expected . getCustomFields ( ) ) ; }