Skip to content

Commit e1047d9

Browse files
committed
Updating tests to reflect new error message in csv2json
Adding '.' to error message
1 parent 14ec053 commit e1047d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/testSemi.js

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

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

299299
it('should throw an error about not having been passed data - 2', function (done) {
300300
converter.csv2json(undefined, function (err, json) {
301-
err.message.should.equal('Cannot call csv2json on undefined');
301+
err.message.should.equal('Cannot call csv2json on undefined.');
302302
done();
303303
}, options);
304304
});
@@ -391,14 +391,14 @@ var csv2jsonTests = function () {
391391

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

399399
it('should throw an error about not having been passed data - 2', function (done) {
400400
converter.csv2json(undefined, function (err, json) {
401-
err.message.should.equal('Cannot call csv2json on undefined');
401+
err.message.should.equal('Cannot call csv2json on undefined.');
402402
done();
403403
});
404404
});
@@ -512,4 +512,4 @@ module.exports = {
512512
csv2jsonTests();
513513
});
514514
}
515-
};
515+
};

0 commit comments

Comments
 (0)