Cannot read property 'rules' of undefined #1591
Answered
by
bebetoalves
bebetoalves
asked this question in
Help
-
Hello, I'm trying to use a validation file in the unit test but I'm not getting it. Validation file:
My unit test:
The following error appears:
|
Beta Was this translation helpful? Give feedback.
Answered by
bebetoalves
Sep 14, 2020
Replies: 1 comment 1 reply
-
Fixed with:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bebetoalves
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed with:
const validation = await validate(data, (new newsValidator).rules);