UNPKG

validatable

Version:

A library for synchronous and asynchronous input validation.

7 lines (5 loc) 179 B
import test from 'ava'; import { stringMatch } from '../../dist/validators'; test('passes with a valid pattern', (t) => { t.is(stringMatch('me', { regexp: /me/i }), true); });