Skip to content

Commit

Permalink
es6 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
danielspaniel committed Dec 24, 2015
1 parent 735a339 commit a11021b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
5 changes: 1 addition & 4 deletions addon/factory-guy-test-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ var FactoryGuyTestHelper = Ember.Object.create({
@param {Object} json response
@param {Object} options ajax request options
*/
stubEndpointForHttpRequest: function (url, json, options) {
options = options || {};
stubEndpointForHttpRequest: function (url, json, options={}) {
var request = {
url: url,
dataType: 'json',
Expand Down Expand Up @@ -245,8 +244,6 @@ var FactoryGuyTestHelper = Ember.Object.create({
*/
handleCreate: function (modelName, opts={}) {
var url = this.buildURL(modelName);
//var opts = options === undefined ? {} : options;

return new MockCreateRequest(url, modelName, opts);
},

Expand Down
1 change: 0 additions & 1 deletion addon/mock-get-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ var MockGetRequest = function (url, modelName, responseJson) {
};

this.andFail = function (options={}) {
//options = options || {};
succeed = false;
status = options.status || 500;
response = options.response || {};
Expand Down
1 change: 0 additions & 1 deletion addon/mock-query-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ var MockQueryRequest = function (url, modelName, queryParams) {

// TODO .. test this is working
this.andFail = function (options={}) {
//options = options || {};
succeed = false;
status = options.status || 500;
if (options.response) {
Expand Down
3 changes: 0 additions & 3 deletions addon/rest-fixture-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ var RESTFixtureBuilder = function(store) {
@return {Object} responseJson
*/
this.normalize = function(modelName, payload) {
//var responseJson = {};
//responseJson[modelName] = payload;
//return responseJson;
return {[modelName]: payload};
};

Expand Down

0 comments on commit a11021b

Please sign in to comment.