Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. window.location.search = '?param=part1'
  2. // It's not working. Browser reloaded or disconnected the unit test cases.
  3.  
  4. spyOnProperty(window.location, 'search').and.returnValue('?param=part1');
  5. // Disconnected the unit test cases.
  6.  
  7. spyOnProperty(obj, propertyName, accessTypeopt)
  8.  
  9. spyOnProperty(window.location, 'search', 'get').and.returnValue('?param=part1')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement