"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const toolUpdateUserNameArgs_1 = require("./toolUpdateUserNameArgs");
describe('toolUpdateUserNameArgsSchema', () => {
    it('accepts and trims valid names', () => {
        const result = toolUpdateUserNameArgs_1.toolUpdateUserNameArgsSchema.parse({
            firstName: '  Jane ',
            lastName: ' Doeberry  ',
        });
        expect(result).toEqual({ firstName: 'Jane', lastName: 'Doeberry' });
    });
    it('rejects empty names', () => {
        expect(() => toolUpdateUserNameArgs_1.toolUpdateUserNameArgsSchema.parse({
            firstName: '',
            lastName: 'Doe',
        })).toThrow();
    });
    it('rejects whitespace-only names', () => {
        expect(() => toolUpdateUserNameArgs_1.toolUpdateUserNameArgsSchema.parse({
            firstName: '   ',
            lastName: 'Doe',
        })).toThrow();
    });
    it('rejects missing fields', () => {
        expect(() => toolUpdateUserNameArgs_1.toolUpdateUserNameArgsSchema.parse({ firstName: 'Jane' })).toThrow();
    });
    it('rejects names over 255 characters', () => {
        expect(() => toolUpdateUserNameArgs_1.toolUpdateUserNameArgsSchema.parse({
            firstName: 'a'.repeat(256),
            lastName: 'Doe',
        })).toThrow();
    });
});
//# sourceMappingURL=toolUpdateUserNameArgs.test.js.map