Skip to content

Commit 903567d

Browse files
Update test to use camelCase field names for CTA button
The CTA component was updated to use camelCase field names (buttonText, buttonHref) to match the API response format. This updates the test to use the same field names. Fixes test failures in body-units.test.tsx 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 1e68a4a commit 903567d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/src/components/body-units.test.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,15 @@ describe('body-units', () => {
4747
screen.getByText('terrible mistake', {exact: false});
4848
});
4949
it('handles CTA', () => {
50-
/* eslint-disable camelcase */
5150
const unit: UnitType = {
5251
id: 'meh',
5352
type: 'blog_cta',
5453
value: {
5554
alignment: 'left',
5655
heading: 'Heading',
5756
description: 'description text',
58-
button_href: '#',
59-
button_text: 'click me'
57+
buttonHref: '#',
58+
buttonText: 'click me'
6059
}
6160
};
6261

0 commit comments

Comments
 (0)