Skip to content

Commit

Permalink
Fix some code style
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic committed Feb 28, 2015
1 parent 3f590b5 commit 468ad0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}));
Expand Down Expand Up @@ -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" );

});

Expand All @@ -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);
}
}));
Expand Down Expand Up @@ -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" );
});
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
};

Expand Down

0 comments on commit 468ad0f

Please sign in to comment.