vows seems to have removed assert.length, replaced with assert.equal

This commit is contained in:
Gareth Jones
2011-11-16 08:39:07 +11:00
parent 154c0dc299
commit bc665b875e
5 changed files with 9 additions and 9 deletions

View File

@@ -106,7 +106,7 @@ vows.describe('log4js layouts').addBatch({
output = layout(event);
lines = output.split(/\n/);
assert.length(lines, stack.length);
assert.equal(lines.length, stack.length);
assert.equal(lines[0], "[2010-12-05 14:18:30.045] [DEBUG] tests - this is a test Error: Some made-up error");
for (var i = 1; i < stack.length; i++) {
assert.equal(lines[i+1], stack[i+1]);