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

Commit

Permalink
test(alert): fix wrong assertion test for close button
Browse files Browse the repository at this point in the history
  • Loading branch information
bekos authored and pkozlowski-opensource committed Nov 22, 2013
1 parent 6efd674 commit c7b097b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/alert/test/alert.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe("alert", function () {
}

function findCloseButton(index) {
return element.find('.alert button').eq(index);
return element.find('.close').eq(index);
}

it("should generate alerts using ng-repeat", function () {
Expand Down Expand Up @@ -64,9 +64,9 @@ describe("alert", function () {
});

it('should not show close buttons if no close callback specified', function () {
var element = $compile('<alert>No close</alert>')(scope);
element = $compile('<alert>No close</alert>')(scope);
scope.$digest();
expect(findCloseButton(0).length).toEqual(0);
expect(findCloseButton(0).css('display')).toBe('none');
});

it('it should be possible to add additional classes for alert', function () {
Expand Down

0 comments on commit c7b097b

Please sign in to comment.