Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
danielspaniel committed Dec 17, 2017
1 parent 6640995 commit c47fea0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions addon/builder/fixture-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export default class {
@param converterOptions
*/
convertForBuild(modelName, fixture, converterOptions) {
// console.log('convertForBuild',modelName, 'converterOptions',converterOptions);
let converter = this.getConverter(converterOptions);
if (!fixture) {
return converter.emptyResponse(modelName, converterOptions);
Expand Down Expand Up @@ -104,4 +103,4 @@ export default class {
}
return { errors: jsonAPIErrors };
}
}
}
1 change: 0 additions & 1 deletion addon/converter/fixture-converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ export default class {
let attrs = serializer.get('attrs'),
option = attrs && (attrs[Ember.String.camelize(attr)] || attrs[attr]);
return option;
// return (option && option.key) ? option.key : option;
}

extractHasMany(fixture, relationship, parentModelName, relationships) {
Expand Down
2 changes: 1 addition & 1 deletion addon/converter/jsonapi-fixture-converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const {dasherize} = Ember.String;
class JSONAPIFixtureConverter extends Converter {

constructor(store, {transformKeys = true, serializeMode = false} = {}) {
// console.log({transformKeys});
// console.log({transformKeys});
super(store, {transformKeys, serializeMode});
this.typeTransformFn = this.serializeMode ? this.typeTransformViaSerializer : dasherize;
this.defaultKeyTransformFn = dasherize;
Expand Down

0 comments on commit c47fea0

Please sign in to comment.