mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
begin building recurring content scheduling
This commit is contained in:
committed by
Sabe Jones
parent
ec0275e6f6
commit
ce796fa1d9
36
test/content/schedule.test.js
Normal file
36
test/content/schedule.test.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import { each } from 'lodash';
|
||||
import {
|
||||
expectValidTranslationString,
|
||||
} from '../helpers/content.helper';
|
||||
|
||||
import { assembleScheduledMatchers } from '../../website/common/script/content/constants/schedule';
|
||||
|
||||
|
||||
describe('Content Schedule', () => {
|
||||
it('assembles scheduled items on january 15th', () => {
|
||||
const items = assembleScheduledMatchers(new Date('2024-01-15'));
|
||||
});
|
||||
|
||||
it('assembles scheduled items on january 31th', () => {
|
||||
const items = assembleScheduledMatchers(new Date('2024-01-31'));
|
||||
});
|
||||
|
||||
it('assembles scheduled items on march 2nd', () => {
|
||||
const items = assembleScheduledMatchers(new Date('2024-03-02'));
|
||||
});
|
||||
|
||||
it('assembles scheduled items on march 21st', () => {
|
||||
const items = assembleScheduledMatchers(new Date('2024-03-21'));
|
||||
});
|
||||
|
||||
it('assembles scheduled items on october 7th', () => {
|
||||
const items = assembleScheduledMatchers(new Date('2024-10-07'));
|
||||
});
|
||||
it('assembles scheduled items on november 1th', () => {
|
||||
const items = assembleScheduledMatchers(new Date('2024-11-01'));
|
||||
});
|
||||
|
||||
it('assembles scheduled items on december 20th', () => {
|
||||
const items = assembleScheduledMatchers(new Date('2024-12-20'));
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user