Permalink
Browse files

Object.setByPath tests syntax fix

  • Loading branch information...
1 parent b8496ed commit 368b58ff93e453e5a8e64610d11ce5e1f67e6a1b Ruslan Sukhar committed May 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Tests/Specs/1.3/Types/Object.Extras.js
@@ -15,8 +15,8 @@ describe('Object.setByPath', function(){
}
}
};
- Object.setByPath('chuck norris', 'animal.human.most_deadly');
- Object.setByPath('shay maria', 'animal.human.most_lovely');
+ Object.setByPath(obj, 'animal.human.most_deadly', 'chuck norris');
+ Object.setByPath(obj, 'animal.human.most_lovely', 'shay maria');
expect(obj.animal.human.most_deadly).toEqual('chuck norris');
expect(obj.animal.human.most_lovely).toEqual('shay maria');
});

0 comments on commit 368b58f

Please sign in to comment.