Skip to content

Commit

Permalink
simplify some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
attilaolah committed May 7, 2014
1 parent 80a45de commit 6791437
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions spec/coffeescripts/wow-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,9 @@ describe 'WOW', ->
.toHaveClass 'animated'
expect $('#simple-5').css 'visibility'
.toBe 'visible'
style = $('#simple-5')[0].style
expect style.background
expect $('#simple-5')[0].style.background
.toBe 'yellow'
expect style.color
expect $('#simple-5')[0].style.color
.toBe 'red'
done()
, timeout
Expand Down
6 changes: 2 additions & 4 deletions spec/javascripts/wow-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,10 @@
return it('does not tamper with the style attribute', function(done) {
window.scrollTo(0, $('#simple-5').offset().top - winHeight + 150);
return setTimeout(function() {
var style;
expect($('#simple-5')).toHaveClass('animated');
expect($('#simple-5').css('visibility')).toBe('visible');
style = $('#simple-5')[0].style;
expect(style.background).toBe('yellow');
expect(style.color).toBe('red');
expect($('#simple-5')[0].style.background).toBe('yellow');
expect($('#simple-5')[0].style.color).toBe('red');
return done();
}, timeout);
});
Expand Down

0 comments on commit 6791437

Please sign in to comment.