Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: prevent sending one word question (#67)
Closes #54 ## Description - Added validation using Valibot to ensure that a space character is included in the question - Ran pnpm run format then pnpm run lint --fix to auto format the code - Tested the validation from local - Resolved merge conflict ## Testing - [ Test new validation on local - test one word question produces correct error message ] (test 1) ![image](https://github.com/mazipan/tanyaaja/assets/98062538/6aeba565-b5d1-4a3b-a354-1773c5e06a56) - [ Test new validation on local - test two word question goes through and appears in DB ] (test 2) ![test2-1](https://github.com/mazipan/tanyaaja/assets/98062538/159fd179-0fee-47c8-a98e-90e1f2518699) ![test2-2](https://github.com/mazipan/tanyaaja/assets/98062538/48170796-6882-4b6d-9f35-9c28f5cfb043) - [ Test existing validation on local - test blank question produces error ] (test 3) ![test3](https://github.com/mazipan/tanyaaja/assets/98062538/deb6f02e-d8ea-42c0-9942-d9169d415d19)
- Loading branch information