Skip to content

Commit

Permalink
Fixed test cases for widget home controller
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhdixit committed Aug 26, 2016
1 parent c988325 commit 09d2df2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/widget/widget.home.controller.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ describe('Unit : loyaltyPluginWidget Plugin widget.home.controller.js', function
var points = 5, callback = function(e, data){
}
WidgetHome.loyaltyRewards = [1,2,3];
WidgetHome.context = {
instanceId : 'abcde1234'
};
$rootScope.$broadcast('REWARD_ADDED', callback);
});
it('should invoke GOTO_HOME when point have some values', function () {
Expand Down

0 comments on commit 09d2df2

Please sign in to comment.