Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jest visit a page

expect(global.window.location.pathname).toEqual('/new-url');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jest #visit #page
ADD COMMENT
Topic
Name
9+4 =