karma runner - AngularJs Tests: assert the path is changed -
I want to claim that the URL will actually be updated on a certain condition.
When I log $ location, it has been printed:
space {change: function () {...}, assign: function () { ...}, for ancestors: DOMStringList {0: Http: // localhost: 9876 ', length: 1}, originally:' http: // localhost: 9876 ', hash:' ', search:' ', path Name: '/context.html', Port: '9876', Hostname: 'Local Host', Host: 'Localhost: 9876', Protocol: 'http:', href: 'http: // localhost: 9876 / context.html ', Reload: Reload function () {...}}
Comments
Post a Comment