mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
Updated comments and removed extra console.log
This commit is contained in:
parent
f3f1bd4d8e
commit
ad2ad70421
2 changed files with 6 additions and 6 deletions
|
|
@ -27,9 +27,9 @@ describe('Challenges Controller', function() {
|
|||
|
||||
it('filters challenges', function() {
|
||||
|
||||
//There are for types of challenges
|
||||
//There are four types of challenges
|
||||
|
||||
//You can be the owner and a member
|
||||
// You are the owner and a member
|
||||
var ownMem = new challenges.Challenge({
|
||||
name: 'test',
|
||||
description: 'test',
|
||||
|
|
@ -45,7 +45,7 @@ describe('Challenges Controller', function() {
|
|||
_isMember: true
|
||||
});
|
||||
|
||||
//You can be the owner and not a member
|
||||
// You are the owner but not a member
|
||||
var ownNotMem = new challenges.Challenge({
|
||||
name: 'test',
|
||||
description: 'test',
|
||||
|
|
@ -61,7 +61,7 @@ describe('Challenges Controller', function() {
|
|||
_isMember: false
|
||||
});
|
||||
|
||||
//You not be the owner and a member
|
||||
// You are not the owner but you are a member
|
||||
var notOwnMem = new challenges.Challenge({
|
||||
name: 'test',
|
||||
description: 'test',
|
||||
|
|
@ -77,7 +77,7 @@ describe('Challenges Controller', function() {
|
|||
_isMember: true
|
||||
});
|
||||
|
||||
//You not be the owner and not a member
|
||||
// You are not the owner or a member
|
||||
var notOwnNotMem = new challenges.Challenge({
|
||||
name: 'test',
|
||||
description: 'test',
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
|
|||
//Membership filters: Show if user has selected either or has selcted Owned and is owner
|
||||
var userIsOwner = chal.leader._id == User.user.id;
|
||||
showChallenge = showChallenge && (typeof $scope.search._isOwner === 'undefined' || userIsOwner === $scope.search._isOwner );
|
||||
console.log($scope.search._isMember, chal._isMember)
|
||||
|
||||
//Membership filters: Show if user has selected either or has selcted Participating and is a member
|
||||
showChallenge = showChallenge && (typeof $scope.search._isMember === 'undefined' || $scope.search._isMember === chal._isMember);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue