Skip to content

Commit

Permalink
Used JSON.stringify to make it more readable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Feb 17, 2015
1 parent d741693 commit af97f26
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions tests/plugins/uploadwidget/manual/_helpers/xhr.js
Expand Up @@ -38,16 +38,15 @@ window.XMLHttpRequest = function() {
else {
clearInterval( interval );
xhr.status = 200;
xhr.responseText =
'{' +
'"fileName":"smallmoon (another copy)(20).JPG",' +
'"uploaded":1,' +
'"url":"\/' + basePath + '_assets\/lena.jpg",' +
'"error":{' +
'"number":201,' +
'"message":""' +
'}' +
'}';
xhr.responseText = JSON.stringify( {
fileName: 'smallmoon (another copy)(20).JPG',
uploaded: 1,
url: '\/' + basePath + '_assets\/lena.jpg',
error: {
number: 201,
message: ''
}
} );
onload();
}
}, 400 );
Expand Down

0 comments on commit af97f26

Please sign in to comment.