mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Cleaning up tests a bit
This commit is contained in:
@@ -11,16 +11,14 @@ describe('promise', function () {
|
||||
});
|
||||
|
||||
it('should provide succinct object to then', function (done) {
|
||||
var request, response;
|
||||
var response;
|
||||
|
||||
axios({
|
||||
url: '/foo'
|
||||
}).then(function (r) {
|
||||
axios('/foo').then(function (r) {
|
||||
response = r;
|
||||
});
|
||||
|
||||
setTimeout(function () {
|
||||
request = jasmine.Ajax.requests.mostRecent();
|
||||
var request = jasmine.Ajax.requests.mostRecent();
|
||||
|
||||
request.respondWith({
|
||||
status: 200,
|
||||
|
||||
Reference in New Issue
Block a user