Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert.length not working with node 0.6.0 #152

Open
renajohn opened this issue Nov 7, 2011 · 2 comments
Open

assert.length not working with node 0.6.0 #152

renajohn opened this issue Nov 7, 2011 · 2 comments

Comments

@renajohn
Copy link
Contributor

renajohn commented Nov 7, 2011

When using assert.length, I have the following error:

expresso -s test/test-server.js

uncaught undefined: TypeError: Property 'length' of object function ok(value, message) {
  if (!!!value) fail(value, true, message, '==', assert.ok);
} is not a function
    at Object._onTimeout (test/test-server.js:31:14)
    at Timer.ontimeout (timers.js:84:39)

Property 'length' of object function ok(value, message) {
  if (!!!value) fail(value, true, message, '==', assert.ok);
} is not a function
TypeError: Property 'length' of object function ok(value, message) {
  if (!!!value) fail(value, true, message, '==', assert.ok);
} is not a function
    at Object._onTimeout (test/test-server.js:31:14)
    at Timer.ontimeout (timers.js:84:39)...
@evantahler
Copy link

bump

@buritica
Copy link

The assert.length method is not defined in node 0.6.0, test the array length instead:

var myArray = [1,2,3];
assert.equal(myArray.length,3);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants