aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorutvk <utvk@users.noreply.github.com>2014-07-08 23:44:32 +0200
committerutvk <utvk@users.noreply.github.com>2014-07-08 23:47:25 +0200
commitd8f2138d2a10750362ff45812d418eb81adac904 (patch)
tree948785bdf0de6488a0b5c3c9d639eef98d691a8e /test
parent6697368ad62f82fa97c780dc3068e71525e09d10 (diff)
Bug with header 0
Diffstat (limited to 'test')
-rw-r--r--test/etatsbasen_test.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/etatsbasen_test.js b/test/etatsbasen_test.js
index 6f42db7..af66789 100644
--- a/test/etatsbasen_test.js
+++ b/test/etatsbasen_test.js
@@ -78,17 +78,18 @@ exports.etatsbasen = {
'filter headers': function(test) {
var oldLogger = console.log;
console.log = function(str) {
- test.expect(5);
+ test.expect(6);
test.ok(str.match(/.*request\_email.*/), 'Can\'t find filtered header email');
test.equal(str.split('\n').length, 10);
test.ok(!str.match(/\,\,/), 'Found empty entries (WARNING: suspect test)');
test.ok(str.match(/.*name\.nn.*/, 'Missing name.nn header'));
+ test.ok(str.match(/^\#id/, 'Missing id header'));
};
etatsbasen.printCSV(function(err) {
console.log = oldLogger;
test.ok(!err);
test.done();
- }, { filename: 'fixtures/2.csv', headers: ['request_email', 3] });
+ }, { filename: 'fixtures/2.csv', headers: ['request_email', 3, 0] });
}
}
};