Skip to content

Commit

Permalink
Ajax tests were not interpreted as JSON type when run in PhantomJS (b…
Browse files Browse the repository at this point in the history
…ecause it gets files without proper HTTP response headers)
  • Loading branch information
warpech committed Mar 18, 2013
1 parent e091031 commit eee299c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/jasmine/spec/editors/autocompleteEditorSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ describe('AutocompleteEditor', function () {
data: {
query: query
},
dataType: 'json',
success: function (response) {
process(response);
done = true;
Expand Down Expand Up @@ -273,6 +274,7 @@ describe('AutocompleteEditor', function () {
data: {
query: query
},
dataType: 'json',
success: function (response) {
process([]); // hardcoded empty result
done = true;
Expand Down Expand Up @@ -364,8 +366,9 @@ describe('AutocompleteEditor', function () {
data: {
query: query
},
dataType: 'json',
success: function (response) {
process(response); // hardcoded empty result
process(response);
done = true;
}
});
Expand Down

0 comments on commit eee299c

Please sign in to comment.