test: fix type error

This commit is contained in:
Jiralite
2025-10-16 10:14:04 +01:00
parent 8a9b331d06
commit f780c6a550

View File

@@ -104,7 +104,7 @@ describe('Text Input Components', () => {
});
test('GIVEN valid input THEN valid JSON outputs are given', () => {
const textInputData: APITextInputComponent = {
const textInputData = {
type: ComponentType.TextInput,
label: 'label',
custom_id: 'custom id',
@@ -114,7 +114,7 @@ describe('Text Input Components', () => {
value: 'value',
required: false,
style: TextInputStyle.Paragraph,
};
} satisfies APITextInputComponent;
expect(new TextInputBuilder(textInputData).toJSON()).toEqual(textInputData);
expect(