Comments (4)
@semisleep I already made a sample PR #41, take a look and let me know if it is something you are interested in.
from simple-vue-validator.
You can even add an optional assertion to make the tests more readable:
utils.addProperty(chai.Assertion.prototype, 'errors', function () {
this.assert(
this._obj._messages.length > 0,
'expected #{this} to have errors',
'expected #{this} to not have errors'
)
})
it('string equivalents are considered integers', () => {
expect(makeRule('1').integer()).to.not.have.errors
expect(makeRule('0').integer()).to.not.have.errors
expect(makeRule('-1').integer()).to.not.have.errors
})
from simple-vue-validator.
Hi, thank you for your suggestion!
Frankly speaking, I don't have more time to write the test cases at this moment. Will you be interested to contribute to this project?
Thanks
from simple-vue-validator.
Seems like the package is inactive.
from simple-vue-validator.
Related Issues (20)
- ability to stop on first error HOT 6
- Improve mixin documentation
- Server side validation errors HOT 1
- Focus input on error HOT 1
- Some way to check if the form is valid so we can disable out submit button HOT 1
- Is there a way to change the mode per component or field? HOT 2
- "Error: Validator.value not set" when passing undefined HOT 1
- add addError to documentation HOT 1
- Validator is not defined HOT 7
- calling required on undefined value return an error HOT 5
- validation status flags HOT 3
- Validation multicomponent form HOT 1
- Add to documentation $setValidators
- Do not bundle es6-promise
- Why overwritten async validations always succeeds HOT 2
- Triggering validation from external components.
- Property or method "validaton" is not defined on the instance but referenced during render. HOT 1
- Feature request - custom validation error messages
- Documentation link down HOT 2
- CakePHP4 upgrade - Created fixtures under outstanding reqs not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-vue-validator.