TecKnow / muster-tools

A package for assigning players to tables at multi-table, walk-in gaming events.
GNU General Public License v3.0
0 stars 0 forks source link

Create regression test for removing the last seat from a table #26

Open TecKnow opened 3 years ago

TecKnow commented 3 years ago

During the resolution of #21 it was revealed that seatsSlice.update_table() did not work properly if the provided table was empty. This bug surfaced when removing the last player form a table through the client UI.

The resolution was to skip the logic of the the update_table() function if the argument table, the array of seats that need to be reordered, was undefined or empty.

Create a regression test to guard against the reappearance of this bug.