fix failing unit test: fix karma syntax for spyOn

This commit is contained in:
Mads Rasmussen
2017-09-11 12:55:46 +02:00
parent d808438288
commit fb60647b5a

View File

@@ -46,7 +46,7 @@
rootScope = $rootScope;
searcher = { search: function() {} };
spyOn(location, "path").andReturn(searcher);
spyOn(location, "path").and.returnValue(searcher)
spyOn(searcher, "search");
initialize();