replace deprecated method call from updated testing library

replace expect() with expectResult()