parent
10afba41cb
commit
441ac0e980
2 changed files with 23 additions and 1 deletions
@ -0,0 +1,14 @@ |
|||||||
|
import testInput from './testInput'; |
||||||
|
import { |
||||||
|
InputTestBatches, |
||||||
|
TestInputFunction, |
||||||
|
} from '../../types/TestInputFunction'; |
||||||
|
|
||||||
|
const createTestInputFunction = |
||||||
|
(tests: InputTestBatches) => |
||||||
|
( |
||||||
|
...[options, ...restArgs]: Parameters<TestInputFunction> |
||||||
|
): ReturnType<TestInputFunction> => |
||||||
|
testInput({ tests, ...options }, ...restArgs); |
||||||
|
|
||||||
|
export default createTestInputFunction; |
@ -1,7 +1,15 @@ |
|||||||
|
import createTestInputFunction from './createTestInputFunction'; |
||||||
import testInput from './testInput'; |
import testInput from './testInput'; |
||||||
import testLength from './testLength'; |
import testLength from './testLength'; |
||||||
import testMax from './testMax'; |
import testMax from './testMax'; |
||||||
import testNotBlank from './testNotBlank'; |
import testNotBlank from './testNotBlank'; |
||||||
import testRange from './testRange'; |
import testRange from './testRange'; |
||||||
|
|
||||||
export { testInput, testLength, testMax, testNotBlank, testRange }; |
export { |
||||||
|
createTestInputFunction, |
||||||
|
testInput, |
||||||
|
testLength, |
||||||
|
testMax, |
||||||
|
testNotBlank, |
||||||
|
testRange, |
||||||
|
}; |
||||||
|
Loading…
Reference in new issue