MCPcopy
hub / github.com/thinkjs/thinkjs / Validator

Class Validator

test/lib/mockie.js:139–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138function mockThinkValidator() {
139 mock('think-validator', class Validator {
140 constructor(ctx) {
141 this.ctx = ctx;
142 }
143 validate(rules, msgs) {
144 return rules.mockResult;
145 }
146 static addRule() {}
147 });
148}
149
150function stop(name) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected