UNPKG

valy

Version:

Intuitive frontend form validation

19 lines (15 loc) 376 B
import chai from 'chai'; import Valy from '../lib/valy.js'; chai.expect(); const expect = chai.expect; var lib; describe('Given an instance of my library', function () { before(function () { lib = new Valy(); }); describe('when I need the name', function () { it('should return the name', () => { expect(lib.name).to.be.equal('Valy'); }); }); });