import { describe, expect, it } from 'vitest'; import { isEmptyUserList } from './user'; describe('isEmptyUserList', () => { it('is empty for an empty list', () => { expect(isEmptyUserList([])).toBe(true); }); it('is not empty when a user is present', () => { expect(isEmptyUserList([{ id: 1, name: 'Ada' }])).toBe(false); }); it('is empty when the list is undefined', () => { expect(isEmptyUserList(undefined)).toBe(true); }); });