Skip to content
Snippets Groups Projects
Select Git revision
  • f5242f20ffe706d14032273ff2b64a5477ae2e1d
  • main default protected
  • drip-server-timing
  • compress-middleware
  • v2.11.0
  • v2.10.0
  • v2.9.2
  • v2.9.1
  • v2.9.0
  • v2.8.0
  • v2.7.0
  • v2.6.0
  • v2.5.6
  • v2.5.5
  • v2.5.4
  • v2.5.3
  • v2.5.2
  • v2.5.1
  • v2.5.0
  • v2.4.2
  • v2.4.1
  • v2.4.0
  • v2.3.0
  • v2.2.2
24 results

handlers_test.go

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));
                })
            });
    
        });
    
    });