Add regression test for adapter's empty field handling

This commit is contained in:
Tim Mickel 2016-06-14 18:14:15 -04:00
parent 7427fe4ff3
commit 9f89caa0e6
2 changed files with 13 additions and 0 deletions
test/unit

View file

@ -165,3 +165,10 @@ test('create with invalid xml', function (t) {
t.equal(result.length, 0);
t.end();
});
test('create with empty field', function (t) {
var result = adapter(events.createemptyfield);
t.ok(Array.isArray(result));
t.equal(result.length, 3);
t.end();
});