Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(modal): Tests fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Lutkevichus committed May 20, 2016
1 parent a5c6f74 commit 5b362a9
Show file tree
Hide file tree
Showing 2 changed files with 1,808 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modal/test/modal.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,10 @@ describe('$uibModal', function() {
var modal = open({template: '<div>Content</div>'});
expect($document).toHaveModalsOpen(1);

$document.find('body > div.modal').click();
var selector = 'body > div.modal';
$document.find(selector).mousedown();
$document.find(selector).mouseup();
$document.find(selector).click();
$animate.flush();
$rootScope.$digest();
$animate.flush();
Expand Down
Loading

0 comments on commit 5b362a9

Please sign in to comment.