fix(ionReorderButton): fix onReorder not triggering angular digest

This commit is contained in:
Andrew Joslin
2014-05-20 08:58:26 -06:00
parent 4d793fd9f4
commit cc46735c82
3 changed files with 18 additions and 12 deletions

View File

@@ -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);
});