Plato on Github
Report Home
dojo/tests/unit/text.js
Maintainability
81.23
Lines of code
19
Difficulty
7.71
Estimated Errors
0.11
Function weight
By Complexity
By SLOC
define([ 'require', 'intern!object', 'intern/chai!assert', 'dojo/json' ], function (require, registerSuite, assert, JSON) { registerSuite({ name: 'dojo/text', 'no X-Requested-With header': function () { var dfd = this.async(); require([ '../../text!/__services/request/xhr' ], dfd.callback(function (data) { data = JSON.parse(data); assert.ok(typeof data.headers['x-requested-with'] === 'undefined'); })); } }); });