test(locationDecorator): make sure it always works

This commit is contained in:
Andy Joslin
2014-03-22 10:51:21 -05:00
parent 9c2b03cea3
commit f692aaeec0

View File

@@ -13,6 +13,11 @@ describe('$location decorator', function() {
$location.hash('123');
$timeout.flush();
expect(scroll.scrollTop).toBe(0);
scroll.scrollTop = 33;
$location.hash('456');
$timeout.flush();
expect(scroll.scrollTop).toBe(0);
}));
});