Plato on Github
Report Home
dojo/tests/functional/parser/parser-args.js
Maintainability
78.09
Lines of code
27
Difficulty
7.94
Estimated Errors
0.17
Function weight
By Complexity
By SLOC
define([ 'require', 'intern!object', 'intern/chai!assert', '../../support/ready' ], function (require, registerSuite, assert, ready) { registerSuite({ name: 'dojo/parser - arguments', scope: function () { var remote = this.get('remote'); return ready(remote, require.toUrl('./parser-args.html')) .execute(function () { var widgets = window.scopedWidgets; return { widgetsLength: widgets.length, strProp1: widgets[0].strProp1 + ", " + widgets[1].strProp1 }; }).then(function (results) { assert.deepEqual(results, { widgetsLength: 2, strProp1: 'text1, text2' }); }); } }); });