Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tech : test date is set to new Date by default on DatePicker #185

Open
trollepierre opened this issue Nov 23, 2017 · 1 comment
Open

Tech : test date is set to new Date by default on DatePicker #185

trollepierre opened this issue Nov 23, 2017 · 1 comment

Comments

@trollepierre
Copy link
Collaborator Author

@jbuget m'a répondu :
J'ai trouvé une lib chai-moment qui peut nous inspirer
https://github.com/picardy/chai-moment/blob/master/index.js
je propose de ne pas l'utiliser (trop peu de stars et d'update)
par contre, dans le cas de ton assertion, je me demande si on ne peut pas faire un :

expect(moment({{actual}}).format({{format}})).to.equal(moment({{expected}}).format({{format}}))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant