Skip to content

Commit f780c6a

Browse files
committed
test: fix type error
1 parent 8a9b331 commit f780c6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/builders/__tests__/components/textInput.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ describe('Text Input Components', () => {
104104
});
105105

106106
test('GIVEN valid input THEN valid JSON outputs are given', () => {
107-
const textInputData: APITextInputComponent = {
107+
const textInputData = {
108108
type: ComponentType.TextInput,
109109
label: 'label',
110110
custom_id: 'custom id',
@@ -114,7 +114,7 @@ describe('Text Input Components', () => {
114114
value: 'value',
115115
required: false,
116116
style: TextInputStyle.Paragraph,
117-
};
117+
} satisfies APITextInputComponent;
118118

119119
expect(new TextInputBuilder(textInputData).toJSON()).toEqual(textInputData);
120120
expect(

0 commit comments

Comments
 (0)