fix error with should(Not)Receive not being defined on window