@rawmodel/validator
Version:
Property value validator for RawModel.
26 lines (22 loc) • 1.2 kB
Plain Text
>>> @rawmodel/validator
npx nyc npx hayspec test
src/tests/index.test.ts
exposed content ⚑
src/tests/core/validator/validate-instance-method.test.ts
validates a value and returns error codes ⚑
can fail fast ⚑
supports conditional handlers ⚑
passes context to each handler ⚑
passes context to each condition ⚑
passes recipe to each handler ⚑
passes recipe to each condition ⚑
8 passing
---------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
---------------|----------|----------|----------|----------|-------------------|
All files | 100 | 81.82 | 100 | 100 | |
src | 100 | 100 | 100 | 100 | |
index.ts | 100 | 100 | 100 | 100 | |
src/core | 100 | 81.82 | 100 | 100 | |
validator.ts | 100 | 81.82 | 100 | 100 | 40,55 |
---------------|----------|----------|----------|----------|-------------------|