@rawmodel/schema
Version:
JSON Schema utils for RawModel.
93 lines (89 loc) • 5.47 kB
Plain Text
>>> /utils
npx nyc npx hayspec test
src/tests/index.test.ts
exposed content ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/is-array.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/is-boolean.test.ts
perform tests ⚑ ⚑ ⚑
src/tests/helpers/is-class-of.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/is-date.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/is-deep-equal.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/is-float.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/is-function.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/is-infinite.test.ts
perform tests ⚑ ⚑ ⚑
src/tests/helpers/is-instance-of.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/is-integer.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/is-null.test.ts
perform tests ⚑ ⚑ ⚑
src/tests/helpers/is-number.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/is-object.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/is-present.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/is-string.test.ts
perform tests ⚑ ⚑ ⚑
src/tests/helpers/is-undefined.test.ts
perform tests ⚑ ⚑ ⚑
src/tests/helpers/is-value.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/normalize.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/realize.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/to-array.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/to-boolean.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/to-date.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/to-float.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/to-integer.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
src/tests/helpers/to-string.test.ts
perform tests ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
26 passing
--------------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
--------------------|----------|----------|----------|----------|-------------------|
All files | 97.69 | 99.03 | 96.15 | 97.69 | |
src | 100 | 100 | 100 | 100 | |
index.ts | 100 | 100 | 100 | 100 | |
src/helpers | 97.28 | 99.03 | 96.15 | 97.28 | |
is-array.ts | 100 | 100 | 100 | 100 | |
is-boolean.ts | 100 | 100 | 100 | 100 | |
is-class-of.ts | 100 | 100 | 100 | 100 | |
is-date.ts | 100 | 100 | 100 | 100 | |
is-deep-equal.ts | 100 | 100 | 100 | 100 | |
is-float.ts | 100 | 100 | 100 | 100 | |
is-function.ts | 100 | 100 | 100 | 100 | |
is-infinite.ts | 100 | 100 | 100 | 100 | |
is-instance-of.ts | 100 | 100 | 100 | 100 | |
is-integer.ts | 100 | 100 | 100 | 100 | |
is-null.ts | 100 | 100 | 100 | 100 | |
is-number.ts | 100 | 100 | 100 | 100 | |
is-object.ts | 100 | 100 | 100 | 100 | |
is-present.ts | 100 | 100 | 100 | 100 | |
is-string.ts | 100 | 100 | 100 | 100 | |
is-undefined.ts | 100 | 100 | 100 | 100 | |
is-value.ts | 100 | 100 | 100 | 100 | |
normalize.ts | 83.33 | 100 | 100 | 83.33 | 12 |
realize.ts | 80 | 100 | 100 | 80 | 15 |
to-array.ts | 100 | 100 | 100 | 100 | |
to-boolean.ts | 100 | 100 | 100 | 100 | |
to-date.ts | 100 | 100 | 100 | 100 | |
to-float.ts | 100 | 100 | 100 | 100 | |
to-integer.ts | 94.44 | 91.67 | 100 | 94.44 | 19 |
to-number.ts | 66.67 | 100 | 0 | 66.67 | 8 |
to-string.ts | 100 | 100 | 100 | 100 | |
--------------------|----------|----------|----------|----------|-------------------|