0.1.0 • Published 5 years ago
krav v0.1.0
WIP NOTICE: Krav is very much still a WIP and in no condition to be used by anyone!
Krav [kra:v]
Krav = swedish for "requirement" or "demand"
const { expect, assert, assume } = require('Krav');
expect(someValue).String.Length.Min(2);
expect(someValue).String.Either(['hi', 'hello']);
expect(someValue).String.Exact('blueberry');
Docs
See https://github.com/Olian04/Recordari/blob/master/docs/constraints.md for future reference