X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a398f2a96740ebe6dd60559d90e74c648e7009af..b60fde6f2bb4d1e10bd4187d54601315aa2e3435:/modules/documentCanvas/tests/canvasNode.test.js?ds=sidebyside diff --git a/modules/documentCanvas/tests/canvasNode.test.js b/modules/documentCanvas/tests/canvasNode.test.js index a1595f7..2452fff 100644 --- a/modules/documentCanvas/tests/canvasNode.test.js +++ b/modules/documentCanvas/tests/canvasNode.test.js @@ -18,17 +18,24 @@ var assertDomEqual = function(lhs, rhs) { suite('Create canvas node', function() { test('from description', function() { - var node = canvasNode.create({tag: 'header', klass: 'some-class', content: 'some text content'}); + var node = canvasNode.create({ + tag: 'header', + klass: 'uri', + content: 'some text content', + meta: {uri: 'some uri'} + }); assert.equal(node.getTag(), 'header'); - assert.equal(node.getClass(), 'some-class'); + assert.equal(node.getClass(), 'uri'); assert.equal(node.getContent(), 'some text content'); - assertDomEqual($('