Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | const comparators = [ { id: 'equals', name: '= (Equals)', validator: 'equals', validatorOption: 'value', description: 'The attribute must equal this value.', }, { id: 'doesNotEqual', name: '!= (Does not equal)', validator: 'doesNotEqual', validatorOption: 'value', description: 'The attribute must not equal this value.', }, { id: 'contains', name: 'Contains', validator: 'contains', validatorOption: 'value', description: 'The attribute must contain this value.', }, { id: 'doesNotContain', name: 'Does not contain', validator: 'doesNotContain', validatorOption: 'value', description: 'The attribute must not contain this value.', }, { id: 'startsWith', name: 'Starts with', validator: 'startsWith', validatorOption: 'value', description: 'The attribute must start with this value.', }, { id: 'endsWith', name: 'Ends with', validator: 'endsWith', validatorOption: 'value', description: 'The attribute must end with this value.', }, { id: 'onlyInteger', name: 'Only Integers', validator: 'numericality', validatorOption: 'onlyInteger', description: "Real numbers won't be allowed.", }, { id: 'greaterThan', name: '> (Greater than)', validator: 'numericality', validatorOption: 'greaterThan', description: 'The attribute has to be greater than this value.', }, { id: 'greaterThanOrEqualTo', name: '>= (Greater than or equal to)', validator: 'numericality', validatorOption: 'greaterThanOrEqualTo', description: 'The attribute has to be at least this value.', }, { id: 'lessThanOrEqualTo', name: '<= (Less than or equal to)', validator: 'numericality', validatorOption: 'lessThanOrEqualTo', description: 'The attribute can be this value at the most.', }, { id: 'lessThan', name: '< (Less than)', validator: 'numericality', validatorOption: 'lessThan', description: 'The attribute has to be less than this value.', }, { id: 'odd', name: 'Odd', validator: 'numericality', validatorOption: 'odd', description: 'The attribute has to be odd.', }, { id: 'even', name: 'Even', validator: 'numericality', validatorOption: 'even', description: 'The attribute has to be even.', }, ]; // Immutable object Object.freeze(comparators); export { comparators }; |