Created
April 22, 2015 15:17
-
-
Save NicholasMurray/ca68a50a7c6a3954d74a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe('The success button', function(){ | |
| var fixture; | |
| beforeEach(function() { | |
| setStyleFixtures('.btn-success { color: #fff; background-color: #5cb85c; border-color: #4cae4c; }'); | |
| fixture = setFixtures('<button type="button" class="btn btn-success">Success</button>'); | |
| }); | |
| it('should have a color of white', function() { | |
| var successButton = fixture.find('.btn-success'); | |
| expect(successButton.css('color')).toEqual('rgb(255, 255, 255)'); | |
| }); | |
| it('should have a background-color of green', function() { | |
| var successButton = fixture.find('.btn-success'); | |
| expect(successButton.css('background-color')).toEqual('rgb(92, 184, 92)'); | |
| }); | |
| it('should have a border-color of green', function() { | |
| var successButton = fixture.find('.btn-success'); | |
| expect(successButton.css('border-color')).toEqual('rgb(76, 174, 76)'); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment