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

Fix isSequence output when changing input value #21

Merged
merged 2 commits into from
Dec 15, 2022
Merged

Fix isSequence output when changing input value #21

merged 2 commits into from
Dec 15, 2022

Conversation

pedrodim
Copy link
Member

Closes #20

I also added some extra tests for isSequence basic functionality (success and failure).

Copy link
Member

@giogonzo giogonzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks 💯 super tiny request inline


describe("validators", () => {
describe("inSequence", () => {
test("it should success validation", async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe "succeed"? or just simply (since it's the first basic test for this validator):

Suggested change
test("it should success validation", async () => {
test("it should work", async () => {

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

failure test is also a "it should work" basic scenario isn't it? 😄 I'll go with "succeed"

Copy link
Member

@giogonzo giogonzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

Thanks @pedrodim!

@giogonzo giogonzo merged commit 5ddfe18 into buildo:main Dec 15, 2022
@giogonzo
Copy link
Member

Published as @buildo/formo@2.0.2

@pedrodim pedrodim deleted the 20-fix-insequence branch December 15, 2022 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inSequence doesn't pass the updated input from a validation to the next one
3 participants