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 Bug 2678: Table creation allows empty array of rows #2680

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

georgbuehler
Copy link

Summary

This is a fix for Bug #2678. It adds an additional test condition to the validate() method on the Table class, to ensure that the rows array is actually populated.

Test plan

The PR includes a unit test file with the appropriate tests to confirm a complete set of table options works fine, while not populating the rows array results in a run-time error. I've run the full set of Mocha unit tests in my local system and all tests passed.

Related to source code (for typings update)

One line of code changed in Table.js

Copy link

@abeel50 abeel50 left a comment

Choose a reason for hiding this comment

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

Great contribution

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.

None yet

2 participants