mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
test: fix type error
This commit is contained in:
@@ -104,7 +104,7 @@ describe('Text Input Components', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('GIVEN valid input THEN valid JSON outputs are given', () => {
|
test('GIVEN valid input THEN valid JSON outputs are given', () => {
|
||||||
const textInputData: APITextInputComponent = {
|
const textInputData = {
|
||||||
type: ComponentType.TextInput,
|
type: ComponentType.TextInput,
|
||||||
label: 'label',
|
label: 'label',
|
||||||
custom_id: 'custom id',
|
custom_id: 'custom id',
|
||||||
@@ -114,7 +114,7 @@ describe('Text Input Components', () => {
|
|||||||
value: 'value',
|
value: 'value',
|
||||||
required: false,
|
required: false,
|
||||||
style: TextInputStyle.Paragraph,
|
style: TextInputStyle.Paragraph,
|
||||||
};
|
} satisfies APITextInputComponent;
|
||||||
|
|
||||||
expect(new TextInputBuilder(textInputData).toJSON()).toEqual(textInputData);
|
expect(new TextInputBuilder(textInputData).toJSON()).toEqual(textInputData);
|
||||||
expect(
|
expect(
|
||||||
|
|||||||
Reference in New Issue
Block a user