Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.location.search = '?param=part1'
- // It's not working. Browser reloaded or disconnected the unit test cases.
- spyOnProperty(window.location, 'search').and.returnValue('?param=part1');
- // Disconnected the unit test cases.
- spyOnProperty(obj, propertyName, accessTypeopt)
- spyOnProperty(window.location, 'search', 'get').and.returnValue('?param=part1')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement