mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Hiding popunder if challenge data is incomplete (#10284)
* removing file that only contained a reference to a missing folder * fixing typo * using full dates to avoid moment warning in tests * more typos * sending an empty string to vue bootstrap tooltip (disabling it) if no challenge short name is set
This commit is contained in:
committed by
Matteo Pagliazzi
parent
403ac1ab7e
commit
c6c9503e22
@@ -966,7 +966,7 @@ describe('shouldDo', () => {
|
||||
m: false,
|
||||
};
|
||||
|
||||
let today = moment('2017-01-27');
|
||||
let today = moment('2017-01-27:00:00.000-00:00');
|
||||
let week = today.monthWeek();
|
||||
let dayOfWeek = today.day();
|
||||
dailyTask.startDate = today.toDate();
|
||||
@@ -974,7 +974,7 @@ describe('shouldDo', () => {
|
||||
dailyTask.repeat[DAY_MAPPING[dayOfWeek]] = true;
|
||||
dailyTask.everyX = 1;
|
||||
dailyTask.frequency = 'monthly';
|
||||
day = moment('2017-02-24');
|
||||
day = moment('2017-02-24:00:00.000-00:00');
|
||||
|
||||
expect(shouldDo(day, dailyTask, options)).to.equal(true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user