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

Test ( #75): added test for edit-table.business / removeField function #94

Conversation

AlbertoSSC
Copy link
Collaborator

@AlbertoSSC AlbertoSSC commented Jan 12, 2024

Closed #75

y: 0,
};

describe('edit table - removeField function', () => {
Copy link
Member

@brauliodiez brauliodiez Jan 12, 2024

Choose a reason for hiding this comment

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

Add an edge case, what happens if you try to remove a field Id that doesn't exists, in this case it should return exactly the same collection

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Could that be included in the last case?

false
);
});

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Wouldn't it be enough with this case down here? ('should not remove any field')

@brauliodiez brauliodiez merged commit e658905 into Lemoncode:main Jan 18, 2024
1 check passed
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.

Edit Table - Remove table removeField add unit tests support
2 participants