Fix lint: move shouldAppendDraftSlots to outer scope

oxlint (consistent-function-scoping) requires functions that don't close
over any variables to be defined at the outer scope rather than inside a
describe block.

https://claude.ai/code/session_01M3H55gnMxRztJK9KMXqqZo
This commit is contained in:
Claude 2026-05-20 01:11:28 +00:00
parent 4cb7424ae4
commit ff89343795
No known key found for this signature in database

View file

@ -463,11 +463,11 @@ describe('Settings Update - Team Count Changes', () => {
// Mirrors the server action condition: existingSlots.length === currentTeamCount
// ---------------------------------------------------------------------------
describe('Settings Update - Draft Slot Creation Guard', () => {
function shouldAppendDraftSlots(existingSlotsCount: number, currentTeamCount: number): boolean {
return existingSlotsCount === currentTeamCount;
}
function shouldAppendDraftSlots(existingSlotsCount: number, currentTeamCount: number): boolean {
return existingSlotsCount === currentTeamCount;
}
describe('Settings Update - Draft Slot Creation Guard', () => {
it('does not create slots when no draft order was ever set', () => {
expect(shouldAppendDraftSlots(0, 12)).toBe(false);
});