mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-01 00:50:24 -04:00
Add regression test for adapter's empty field handling
This commit is contained in:
parent
7427fe4ff3
commit
9f89caa0e6
2 changed files with 13 additions and 0 deletions
test/unit
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue