UNPKG

dojo

Version:

Dojo core is a powerful, lightweight library that makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.

20 lines (17 loc) 447 B
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'); })); } }); });