diff --git a/test/spec/controllers/notificationCtrlSpec.js b/test/spec/controllers/notificationCtrlSpec.js index e67c2f5b61..79ce0f7109 100644 --- a/test/spec/controllers/notificationCtrlSpec.js +++ b/test/spec/controllers/notificationCtrlSpec.js @@ -39,12 +39,10 @@ describe('Notification Controller', function() { it('does not open quest invitation modal if RSVPNeeded is not true', function() { user.party.quest.RSVPNeeded = false; - user.party.quest.completed = "hedgebeast"; + delete user.party.quest.completed; scope.$digest(); - // Completion modal should open, but should be the only modal that opens - expect(rootScope.openModal).to.be.calledOnce; - expect(rootScope.openModal).to.be.calledWith('questCompleted', {controller:'InventoryCtrl'}); + expect(rootScope.openModal).to.not.be.called; }); it('does not open quest invitation modal if quest.completed contains a quest key', function() {