visionmedia/should.js — Issue #28: should.have.length() always gives length = 1
Author: jgonera
Created: 2011-11-30 11:33:05+00:00
State: open

Seems it doesn't work. `lenghtOf()` too. node 0.4.10, should 0.3.2, mocha 0.0.8:

describe('Array length', function() {
it('fails', function() {
[1,2].should.have.length(2);
});

it('passes', function() {
[1,2].length.should.equal(2);
});
});