sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
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');
}));
}
});
});