mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
Removed duplicated test
This commit is contained in:
@@ -54,16 +54,6 @@ describe('Notification Controller', function() {
|
|||||||
expect(rootScope.openModal).to.be.calledOnce;
|
expect(rootScope.openModal).to.be.calledOnce;
|
||||||
expect(rootScope.openModal).to.be.calledWith('questCompleted', {controller:'InventoryCtrl'});
|
expect(rootScope.openModal).to.be.calledWith('questCompleted', {controller:'InventoryCtrl'});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('does not open quest invitation modal if quest.completed contains a quest key', function() {
|
|
||||||
user.party.quest.RSVPNeeded = true;
|
|
||||||
user.party.quest.completed = "hedgebeast";
|
|
||||||
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'});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
describe('Quest Completion modal watch', function() {
|
describe('Quest Completion modal watch', function() {
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user