mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 15:17:43 -05:00
Allow submitting empty bio as widget
This commit is contained in:
@@ -59,8 +59,11 @@ describe("PlusVotingRepository.findAllUsersForVoting", () => {
|
||||
expect(bio).toBeNull();
|
||||
});
|
||||
|
||||
test("returns no bio for an empty bio widget", async () => {
|
||||
const bio = await bioOf([{ id: "bio", settings: { bio: "" } }]);
|
||||
test.each([
|
||||
{ why: "unset", value: null },
|
||||
{ why: "empty string", value: "" },
|
||||
])("returns no bio for a bio widget with an $why bio", async ({ value }) => {
|
||||
const bio = await bioOf([{ id: "bio", settings: { bio: value } }]);
|
||||
|
||||
expect(bio).toBeNull();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user