0.0.1 • Published 5 years ago

valudate v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Build Status Coverage Status Dependency Status

valudate

Provides helpers to test for values rather than types.

Installation

With npm:

$ npm install valudate

With yarn:

$ yarn add valudate

The validation tests categories

theValueIs

Value validation tests that returns `true` if the value pass the test and `false` if it fails the test.

Test nameDescription
aNonEmptyStringTest if a value is a non empty string.
aNonEmptyObjectTest if a value is a non empty object.
definedTest if a value is defined.
definedAndNotNullTest if a value is defined and not null.
notDefinedTest if a value is `undefined`.
notDefinedOrNullTest if a value is `undefined` or `null`.

theValueMust

Value validation tests that throws when the value fails the test.

Test nameDescription
beANonEmptyObject
beANonEmptyString
beDefinedTest if the value is defined

See also


© 2019 Jean Gregory Verret gregory.verret@gmail.com.