diff --git a/packages/ember-data/tests/integration/serializers/embedded_records_mixin_test.js b/packages/ember-data/tests/integration/serializers/embedded_records_mixin_test.js index 4fc4b312e76..6bce3dd7a8f 100644 --- a/packages/ember-data/tests/integration/serializers/embedded_records_mixin_test.js +++ b/packages/ember-data/tests/integration/serializers/embedded_records_mixin_test.js @@ -1388,7 +1388,7 @@ test("extractSingle with polymorphic hasMany", function() { attrs: { secretWeapons: { embedded: 'always' } }, - typeForRoot: function(type){ + typeForRoot: function(type) { return Ember.String.dasherize(type); } })); @@ -1429,10 +1429,10 @@ test("extractSingle with polymorphic hasMany", function() { ] }, "Primary hash was correct"); - equal( env.store.recordForId("secret-weapon", "1").get("name"), "The Death Star", - "Embedded polymorphic SecretWeapon found" ); - equal( env.store.recordForId("light-saber", "1").get("name"), "Tom's LightSaber", - "Embedded polymorphic LightSaber found" ); + equal(env.store.recordForId("secret-weapon", "1").get("name"), "The Death Star", + "Embedded polymorphic SecretWeapon found" ); + equal(env.store.recordForId("light-saber", "1").get("name"), "Tom's LightSaber", + "Embedded polymorphic LightSaber found" ); }); @@ -1448,7 +1448,7 @@ test("extractSingle with polymorphic belongsTo", function() { attrs: { secretLab: { embedded: 'always' } }, - typeForRoot: function(type){ + typeForRoot: function(type) { return Ember.String.dasherize(type); } })); @@ -1479,6 +1479,6 @@ test("extractSingle with polymorphic belongsTo", function() { secretLabType: "batCave" }, "Primary has was correct"); - equal( env.store.recordForId("bat-cave", "1").get("infiltrated"), true, - "Embedded polymorphic BatCave was found" ); + equal(env.store.recordForId("bat-cave", "1").get("infiltrated"), true, + "Embedded polymorphic BatCave was found" ); }); diff --git a/packages/ember-data/tests/integration/serializers/rest_serializer_test.js b/packages/ember-data/tests/integration/serializers/rest_serializer_test.js index 3256bb10d40..24f3ccbb634 100644 --- a/packages/ember-data/tests/integration/serializers/rest_serializer_test.js +++ b/packages/ember-data/tests/integration/serializers/rest_serializer_test.js @@ -529,7 +529,7 @@ test("serializeIntoHash with dasherized model", function() { }); test("serializeIntoHash with and typeForPayload", function() { - env.restSerializer.typeForPayload = function(key){ + env.restSerializer.typeForPayload = function(key) { return key.toUpperCase(); }; env.container.register('model:home-planet', HomePlanet); @@ -568,7 +568,7 @@ test('serializeBelongsTo with async polymorphic with typeForPayload', function() var json = {}; var expected = { evilMinion: '1', evilMinionType: 'evil_minion' }; - env.restSerializer.typeForPayload = function(key){ + env.restSerializer.typeForPayload = function(key) { return Ember.String.decamelize(key); };