Validate that everyX values in dailies are integers bounded by 0 and 9999 fixes #8782 (#9268)

* Validate that everyX values are integers bounded by 0 and 9999

* Added client side check

* Updated tests

* Added migration for bad dailies

Near idential to the other task migration.

* fix(typo): camelCase function call
This commit is contained in:
Tyler Nychka
2017-12-05 14:55:32 -05:00
committed by Sabe Jones
parent 8367de34bf
commit bfaa7c0fea
5 changed files with 135 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ describe('shared.ops.addTask', () => {
expect(habit.counterDown).to.equal(0);
});
it('adds an habtit when type is invalid', () => {
it('adds a habit when type is invalid', () => {
let habit = addTask(user, {
body: {
type: 'invalid',