diff --git a/test/integration/encode-test.js b/test/integration/encode-test.js index 3df6955..070c4d6 100644 --- a/test/integration/encode-test.js +++ b/test/integration/encode-test.js @@ -27,6 +27,11 @@ describe("encode", function() { assert.deepEqual($form.serializeObject(), {a: [ { b: ["c"] } ]}); }); + it("checkbox inputs as nested arrays with a sibling don't break", function() { + var $form = $('
'); + assert.deepEqual($form.serializeObject(), {a: [ { b: ["c"], d: 'e' } ]}); + }); + it("checkbox inputs as booleans if value is 'on'", function() { var $form = $(''); assert.deepEqual($form.serializeObject(), {a: true});