Permalink
Browse files

Fix expectation to match reality, now and in the future :)

  • Loading branch information...
1 parent 2145b5f commit 3ea1f369ec5ab9ac35c88e2f52b6b825cd78f2da @rmurphey rmurphey committed Apr 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/app/functions.js
View
@@ -98,7 +98,7 @@ define([ 'use!underscore' ], function(_) {
});
it('you should be able to use closures', function () {
- var arr = [Math.random(), Math.random(), Math.random(), Math.random()];
+ var arr = [ Math.random(), Math.random(), Math.random(), Math.random() ];
var doSomeStuff;
fn = function (vals) {
@@ -108,7 +108,7 @@ define([ 'use!underscore' ], function(_) {
doSomeStuff = function (x) { return x * x; };
var funcs = fn(arr);
- expect(funcs).to.have.length(5);
+ expect(funcs).to.have.length(arr.length);
for (var i = funcs.length - 1; i >= 0; i--) {
expect(funcs[i]()).to.be(doSomeStuff(arr[i]));
};

0 comments on commit 3ea1f36

Please sign in to comment.