Merge pull request #30 from haricot/patch-3

Fixed test carousel that did fail
This commit was merged in pull request #30.
This commit is contained in:
Christopher S. Case
2018-07-01 20:28:58 -05:00
committed by GitHub
-18
View File
@@ -164,24 +164,6 @@ describe('carousel', function() {
expect(navPrev.hasClass('disabled')).toBe(true);
});
it('should disable next button when last slide is active and noWrap is truthy', function() {
scope.slides = [
{content: 'one', index: 0},
{content: 'two', index: 1}
];
scope.$apply();
var $scope = elm.isolateScope();
$scope.noWrap = function() {return true;};
$scope.next();
$scope.isNextDisabled();
scope.$apply();
var navNext = elm.find('a.carousel-control-prev');
expect(navNext.hasClass('disabled')).toBe(true);
});
it('should show navigation when there are 3 slides', function () {
var indicators = elm.find('ol.carousel-indicators > li');