mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(list): use timeout.flush()
This commit is contained in:
@@ -44,7 +44,7 @@ describe('ionList directive', function() {
|
||||
el.scope().$onReorder = jasmine.createSpy('$onReorder');
|
||||
options.onReorder(el, 2, 3);
|
||||
expect(el.scope().$onReorder).not.toHaveBeenCalled();
|
||||
el.scope().$apply();
|
||||
flush();
|
||||
expect(el.scope().$onReorder).toHaveBeenCalledWith(2,3);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user