Permalink
Browse files

fix assertion order in `get()` tests

  • Loading branch information...
1 parent ca7fb89 commit 47b119cff759d782134536da00324f252c63ab1d @mislav mislav committed Dec 12, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 test/zepto.html
View
7 test/zepto.html
@@ -490,10 +490,9 @@
testGetWithIndex: function(t){
var zepto = $('#find1 .findme')
- var outofbounds = zepto.get(zepto.size())
- t.assertEqual(zepto.get(0), zepto[0])
- t.assertEqual(zepto.get(-1), zepto[zepto.length - 1])
- t.assertUndefined(outofbounds)
+ t.assertEqual(zepto[0], zepto.get(0))
+ t.assertEqual(zepto[zepto.length - 1], zepto.get(-1))
+ t.assertUndefined(zepto.get(zepto.length))
},
testSize: function(t){

0 comments on commit 47b119c

Please sign in to comment.