mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-24 14:45:36 +00:00
Modified 'RSVPNeeded is not true' test to not set user.party.quest.completed because it is not needed for the test
This commit is contained in:
parent
8026e99219
commit
f75bbb6e5f
1 changed files with 2 additions and 4 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue