fixing mockEndpoints on window