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