Skip to content
Snippets Groups Projects
Select Git revision
  • 32d43486403593de2d98457a874d36f6b2e88c3e
  • master default protected
2 results

constants.js

Blame
  • valid.mjs 474 B
    import {Valid} from "../../../../application/source/constraints/valid.mjs";
    import {expect} from "chai"
    
    describe('Valid', function () {
    
        describe('.isValid()', function () {
            let constraint = new Valid()
    
            it('should resolve promise', function (done) {
                constraint.isValid({}).then(r => {
                    done();
                }).catch(e => {
                    done(new Error("should not reached: " + e));
                })
            });
    
        });
    
    });