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

Commit 628039b

Browse files
Incellwesleycho
Incell
authored andcommitted
chore(tooltip): fix matcher condition
Closes #4821
1 parent 80df015 commit 628039b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tooltip/test/tooltip2.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('tooltip directive', function() {
2424
pass: util.equals(ttipElements.length, noOfOpened, customEqualityTesters)
2525
};
2626

27-
if (result.message) {
27+
if (result.pass) {
2828
result.message = 'Expected "' + angular.mock.dump(ttipElements) + '" not to have "' + ttipElements.length + '" opened tooltips.';
2929
} else {
3030
result.message = 'Expected "' + angular.mock.dump(ttipElements) + '" to have "' + ttipElements.length + '" opened tooltips.';

0 commit comments

Comments
 (0)