diff --git a/test/fixtures/events.json b/test/fixtures/events.json index 6d94fc62a..f80610d46 100644 --- a/test/fixtures/events.json +++ b/test/fixtures/events.json @@ -53,5 +53,11 @@ "xml": { "outerHTML": ">" } + }, + "createemptyfield": { + "name": "block", + "xml": { + "outerHTML": "" + } } } diff --git a/test/unit/adapter.js b/test/unit/adapter.js index 838815626..c31175a72 100644 --- a/test/unit/adapter.js +++ b/test/unit/adapter.js @@ -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(); +});