X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/29a9bfd9b61771b41ca18de2a53b672cb3c07cf1..fb3b7d9bff29aa5c99298ce9e4bae53c2eb47a7d:/src/smartxml/smartxml.test.js diff --git a/src/smartxml/smartxml.test.js b/src/smartxml/smartxml.test.js index a994f05..2a6c5e0 100644 --- a/src/smartxml/smartxml.test.js +++ b/src/smartxml/smartxml.test.js @@ -163,6 +163,12 @@ describe('smartxml', function() { node.setData({key1: 'value1', key2: 'value2'}); expect(node.getData()).to.eql({key1: 'value1', key2: 'value2'}); }); + + it('can remove specific data', function() { + node.setData('key', 'value'); + node.setData('key', undefined); + expect(node.getData('key')).to.be.undefined; + }); }); describe('Changing node tag', function() {