validaty
Version:
jQuery Validaty - A Validation Plugin
19 lines (14 loc) • 332 B
JavaScript
describe('validator', function() {
'use strict';
beforeEach(function() {
fixture.load('default.html');
});
it('removes the main class', function() {
// given
var form = $('form').validaty();
// when
form.validaty('destroy');
// then
expect(form[0].classList[0]).toEqual(undefined);
});
});