Remove menu icon tests that are no longer required.

This commit is contained in:
Dave Page 2017-09-11 10:13:54 +01:00
parent 4b5b3195c4
commit cca7526b9b

View File

@ -26,10 +26,6 @@ define([
expect(menuItem.$el.find('span').hasClass('font-gray-4')).toBeTruthy(); expect(menuItem.$el.find('span').hasClass('font-gray-4')).toBeTruthy();
}); });
it('should change the icon to gray', function () {
expect(menuItem.$el.find('i').hasClass('font-gray-4')).toBeTruthy();
});
describe('when becomes enabled', function () { describe('when becomes enabled', function () {
beforeEach(function () { beforeEach(function () {
menuItem.enable = true; menuItem.enable = true;
@ -40,11 +36,6 @@ define([
expect(menuItem.$el.find('span').hasClass('font-gray-4')).toBeFalsy(); expect(menuItem.$el.find('span').hasClass('font-gray-4')).toBeFalsy();
expect(menuItem.$el.find('span').hasClass('font-white')).toBeTruthy(); expect(menuItem.$el.find('span').hasClass('font-white')).toBeTruthy();
}); });
it('should change the icon color to white', function () {
expect(menuItem.$el.find('i').hasClass('font-gray-4')).toBeFalsy();
expect(menuItem.$el.find('i').hasClass('font-white')).toBeTruthy();
});
}); });
}); });
@ -58,10 +49,6 @@ define([
expect(menuItem.$el.find('span').hasClass('font-white')).toBeTruthy(); expect(menuItem.$el.find('span').hasClass('font-white')).toBeTruthy();
}); });
it('should change the icon to white', function () {
expect(menuItem.$el.find('i').hasClass('font-white')).toBeTruthy();
});
describe('when becomes disabled', function () { describe('when becomes disabled', function () {
beforeEach(function () { beforeEach(function () {
menuItem.enable = false; menuItem.enable = false;
@ -72,11 +59,6 @@ define([
expect(menuItem.$el.find('span').hasClass('font-gray-4')).toBeTruthy(); expect(menuItem.$el.find('span').hasClass('font-gray-4')).toBeTruthy();
expect(menuItem.$el.find('span').hasClass('font-white')).toBeFalsy(); expect(menuItem.$el.find('span').hasClass('font-white')).toBeFalsy();
}); });
it('should change the icon color to gray', function () {
expect(menuItem.$el.find('i').hasClass('font-gray-4')).toBeTruthy();
expect(menuItem.$el.find('i').hasClass('font-white')).toBeFalsy();
});
}); });
}); });
}); });