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 for schema service tests #139

Merged
merged 3 commits into from
Jan 6, 2022
Merged

fix for schema service tests #139

merged 3 commits into from
Jan 6, 2022

Conversation

MXPOL
Copy link
Collaborator

@MXPOL MXPOL commented Jan 5, 2022

The format of the column object have been changed, but the random column generator haven't, this pr fix it and generates the right column object

@@ -57,9 +57,9 @@ const randomCollections = () => randomArrayOf( randomCollectionName )

const randomFieldName = () => chance.word({ length: 5 })

const randomDbField = () => ( { name: chance.word(), type: chance.word(), subtype: chance.word(), isPrimary: chance.bool() } )
const randomCollectionField = () => ({ field: chance.word(), type: randomWixDataType() })
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not just change name to field, why rename all of the methods ?

@MXPOL MXPOL merged commit d69d13e into master Jan 6, 2022
@noam-almog noam-almog deleted the fix-schema-tests branch February 22, 2022 09:10
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.

2 participants