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:
Brian Fenton
2018-04-28 10:38:38 -05:00
committed by Matteo Pagliazzi
parent 403ac1ab7e
commit c6c9503e22
7 changed files with 13 additions and 11 deletions

View File

@@ -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);
});