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.

27 lines (22 loc) 669 B
define([ 'intern!object', 'intern/chai!assert', 'sinon', 'require', '../../../errors/create', '../../../errors/RequestError', '../../../_base/declare' ], function (registerSuite, assert, sinon, require, create, RequestError, declare) { registerSuite({ name: 'dojo/errors/RequestError', "returns correct result": function () { //arrange var response= {foo: "bar"}; //act var result = new RequestError("foo", response); //assert assert.equal(result.name, "RequestError"); assert.equal(result.response, response); } }); });