From c47fea08508766f060e03bebeb8163413427bf5a Mon Sep 17 00:00:00 2001 From: Dan Sudol Date: Sun, 17 Dec 2017 14:28:03 -0500 Subject: [PATCH] clean up --- addon/builder/fixture-builder.js | 3 +-- addon/converter/fixture-converter.js | 1 - addon/converter/jsonapi-fixture-converter.js | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/addon/builder/fixture-builder.js b/addon/builder/fixture-builder.js index 46cb9403..c2623993 100644 --- a/addon/builder/fixture-builder.js +++ b/addon/builder/fixture-builder.js @@ -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); @@ -104,4 +103,4 @@ export default class { } return { errors: jsonAPIErrors }; } -} \ No newline at end of file +} diff --git a/addon/converter/fixture-converter.js b/addon/converter/fixture-converter.js index 9407701b..5dce5f04 100644 --- a/addon/converter/fixture-converter.js +++ b/addon/converter/fixture-converter.js @@ -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) { diff --git a/addon/converter/jsonapi-fixture-converter.js b/addon/converter/jsonapi-fixture-converter.js index 1b0bbcab..f302c1ba 100644 --- a/addon/converter/jsonapi-fixture-converter.js +++ b/addon/converter/jsonapi-fixture-converter.js @@ -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;