X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/efe36f4f1b5df351eeb4d40a54c3900cf9a7079b..2c3bcb5d2d550bb6546c0f8aa3721f623ca9d6b6:/src/editor/modules/nodePane/metaWidget/metaWidget.test.js?ds=sidebyside diff --git a/src/editor/modules/nodePane/metaWidget/metaWidget.test.js b/src/editor/modules/nodePane/metaWidget/metaWidget.test.js index 05b75dc..bc1a579 100644 --- a/src/editor/modules/nodePane/metaWidget/metaWidget.test.js +++ b/src/editor/modules/nodePane/metaWidget/metaWidget.test.js @@ -1,10 +1,12 @@ define([ +'libs/jquery', 'libs/chai', 'libs/sinon', 'modules/nodePane/metaWidget/metaWidget' -], function(chai, sinon, metaWidget) { +], function($, chai, sinon, metaWidget) { 'use strict'; +/* globals describe, it */ var assert = chai.assert; @@ -13,7 +15,7 @@ describe('metaWidget', function() { var dom = $('
'); var widget = metaWidget.create({ el: dom, - attrs: [{name: 'uri', type: 'string', value: 'test string'}], + attrs: {'uri': {type: 'string', value: 'test string'}}, }); var spy = sinon.spy();