Something went wrong on our end
Select Git revision
constants.js
-
Volker Schukai authoredVolker Schukai authored
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));
})
});
});
});