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

Commit

Permalink
chore(tooltip): fix matcher condition
Browse files Browse the repository at this point in the history
Closes #4821
  • Loading branch information
Incell authored and wesleycho committed Nov 5, 2015
1 parent 80df015 commit 628039b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tooltip/test/tooltip2.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('tooltip directive', function() {
pass: util.equals(ttipElements.length, noOfOpened, customEqualityTesters)
};

if (result.message) {
if (result.pass) {
result.message = 'Expected "' + angular.mock.dump(ttipElements) + '" not to have "' + ttipElements.length + '" opened tooltips.';
} else {
result.message = 'Expected "' + angular.mock.dump(ttipElements) + '" to have "' + ttipElements.length + '" opened tooltips.';
Expand Down

0 comments on commit 628039b

Please sign in to comment.