Skip to content

Commit

Permalink
Merge pull request #2855 from bmac/fix-travis
Browse files Browse the repository at this point in the history
Fix jscs warnings on master to make everyone happy
  • Loading branch information
igorT committed Mar 11, 2015
2 parents fc1cc83 + d4053d8 commit 673e477
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/ember-data/tests/unit/model/rollback_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ test("when destroying a record setup the record state to invalid, the record can
var adapter = this;

return new Ember.RSVP.Promise(function(resolve, reject) {
Ember.run.next(function(){
reject(adapter.ajaxError({name: 'is invalid'}));
Ember.run.next(function() {
reject(adapter.ajaxError({ name: 'is invalid' }));
});
});
},
Expand All @@ -303,13 +303,13 @@ test("when destroying a record setup the record state to invalid, the record can
}
});

env = setupStore({ dog: Dog, adapter: adapter});
env = setupStore({ dog: Dog, adapter: adapter });
var dog;
run(function(){
run(function() {
dog = env.store.push('dog', { id: 1, name: "Pluto" });
});

run(function(){
run(function() {
dog.destroyRecord().then(null, async(function() {


Expand Down

0 comments on commit 673e477

Please sign in to comment.