mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(locationDecorator): make sure it always works
This commit is contained in:
@@ -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);
|
||||
}));
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user