Skip to content

Commit c7b097b

Browse files
bekospkozlowski-opensource
authored andcommitted
test(alert): fix wrong assertion test for close button
1 parent 6efd674 commit c7b097b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/alert/test/alert.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe("alert", function () {
3232
}
3333

3434
function findCloseButton(index) {
35-
return element.find('.alert button').eq(index);
35+
return element.find('.close').eq(index);
3636
}
3737

3838
it("should generate alerts using ng-repeat", function () {
@@ -64,9 +64,9 @@ describe("alert", function () {
6464
});
6565

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

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

0 commit comments

Comments
 (0)