import { themis } from '~/main'; import { doManyTests } from '~/tests/integration/helpers'; describe('Themis - Schema with Number Tests', () => { const schema = themis.number({ required: true, min: -10, max: 50, }); const testMany = doManyTests(schema); testMany.valid([-10, -9, 0, 10, 20, 49, 50]); testMany.invalid([undefined, null, -10.01, -11, -20, 50.01, 51, 100]); });