Skip to content

Commit 14ec053

Browse files
committed
Updating tests to reflect new error message in csv2json
Added comma to the error message.
1 parent 50b9237 commit 14ec053

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/testComma.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,14 +289,14 @@ var csv2jsonTests = function () {
289289

290290
it('should throw an error about not having been passed data - 1', function (done) {
291291
converter.csv2json(null, function (err, json) {
292-
err.message.should.equal('Cannot call csv2json on null');
292+
err.message.should.equal('Cannot call csv2json on null.');
293293
done();
294294
}, options);
295295
});
296296

297297
it('should throw an error about not having been passed data - 2', function (done) {
298298
converter.csv2json(undefined, function (err, json) {
299-
err.message.should.equal('Cannot call csv2json on undefined');
299+
err.message.should.equal('Cannot call csv2json on undefined.');
300300
done();
301301
}, options);
302302
});
@@ -389,14 +389,14 @@ var csv2jsonTests = function () {
389389

390390
it('should throw an error about not having been passed data - 1', function (done) {
391391
converter.csv2json(null, function (err, json) {
392-
err.message.should.equal('Cannot call csv2json on null');
392+
err.message.should.equal('Cannot call csv2json on null.');
393393
done();
394394
});
395395
});
396396

397397
it('should throw an error about not having been passed data - 2', function (done) {
398398
converter.csv2json(undefined, function (err, json) {
399-
err.message.should.equal('Cannot call csv2json on undefined');
399+
err.message.should.equal('Cannot call csv2json on undefined.');
400400
done();
401401
});
402402
});
@@ -511,4 +511,4 @@ module.exports = {
511511
csv2jsonTests();
512512
});
513513
}
514-
};
514+
};

0 commit comments

Comments
 (0)