Skip to content

Commit 20bd512

Browse files
Qjuhvladfrangu
authored andcommitted
fix: tests
1 parent 8806500 commit 20bd512

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/builders/__tests__/components/v2/section.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ describe('Section', () => {
127127
const section = new SectionBuilder()
128128
.addTextDisplayComponents(new TextDisplayBuilder().setContent('Hello world'))
129129
.setPrimaryButtonAccessory({
130-
type: ComponentType.Button as const,
131-
style: ButtonStyle.Primary as const,
130+
type: ComponentType.Button,
131+
style: ButtonStyle.Primary,
132132
custom_id: 'click_me',
133-
lLabel: 'Click me',
133+
label: 'Click me',
134134
});
135135

136136
expect(section.toJSON()).toEqual({

packages/builders/src/components/v2/Section.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import type {
55
APIThumbnailComponent,
66
APIButtonComponentWithSKUId,
77
APIButtonComponentWithURL,
8+
ButtonStyle,
89
} from 'discord-api-types/v10';
910
import { ComponentType } from 'discord-api-types/v10';
10-
import type { ButtonStyle } from 'discord-api-types/v8';
1111
import { normalizeArray, type RestOrArray } from '../../util/normalizeArray.js';
1212
import { resolveBuilder } from '../../util/resolveBuilder.js';
1313
import { validate } from '../../util/validation.js';

0 commit comments

Comments
 (0)