GithubHelp home page GithubHelp logo

isDate alway fails about vest HOT 7 CLOSED

NormandoHall avatar NormandoHall commented on June 22, 2024
isDate alway fails

from vest.

Comments (7)

ealush avatar ealush commented on June 22, 2024 1

Hi @NormandoHall, thanks for reaching out!

I just checked both examples that you supplied, and they both seem to be passing:
image

On the right hand side you're seeing the proxy Object being returned from enforce, instead of an error being thrown - which means that isDate does indeed pass.

I am wondering how it looks inside your suite, there may be something else at play. Do you have a quick repro sandbox that I can take a look at?

from vest.

NormandoHall avatar NormandoHall commented on June 22, 2024 1

@ealush, now runs like a charm.

Thank you!

from vest.

NormandoHall avatar NormandoHall commented on June 22, 2024

Hi @ealush, Thanks for your quick reply.

I have forked your svelte example sandbox, and added the form field "birthDate" and added the test in the suite, and still fails.

https://codesandbox.io/p/sandbox/svelte-vest-5-isdate-fail-vtdzjw

from vest.

ealush avatar ealush commented on June 22, 2024

@NormandoHall
No changes to your code whatsoever, it seems to work correctly.

Can you try just inputting this:
01/08/1990
I am wondering if it's related to trimming, special ascii characters, or something else I can't think of - because your code works.

See screencap
birthdate

from vest.

NormandoHall avatar NormandoHall commented on June 22, 2024

It is very strange. I tested 01/08/1990 and fails. Tested with Chrome, Edge, and Firefox

vest.mp4

from vest.

NormandoHall avatar NormandoHall commented on June 22, 2024

Well, with [email protected] runs ok (maybe because uses [email protected])

from vest.

ealush avatar ealush commented on June 22, 2024

OK. I think you are right. I had the 13.9.0 locally installed and that's why I did not experience this. I downgraded and now I see this.

Releasing now a patch version of Vest with the lower validator version. Will be out in a few moments.

from vest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.