Skip to content

Commit f3ed2b9

Browse files
authored
[EDU-1998] - Update casings of examples headers
2 parents 43c029e + 9ad0b62 commit f3ed2b9

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

src/components/Examples/ExamplesContent.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ describe('ExamplesContent', () => {
6262
const searchInput = screen.getByPlaceholderText('Find an example');
6363
fireEvent.change(searchInput, { target: { value: 'nonexistent' } });
6464
expect(screen.getByText('No results found')).toBeInTheDocument();
65-
expect(screen.queryByText('Member Location')).not.toBeInTheDocument();
66-
expect(screen.queryByText('Avatar Stack')).not.toBeInTheDocument();
65+
expect(screen.queryByText('Member location')).not.toBeInTheDocument();
66+
expect(screen.queryByText('Avatar stack')).not.toBeInTheDocument();
6767
});
6868

6969
it('filters examples based on search input (with results)', () => {
7070
render(<ExamplesContent exampleImages={exampleImages} />);
7171
const searchInput = screen.getByPlaceholderText('Find an example');
7272
fireEvent.change(searchInput, { target: { value: 'avatar' } });
7373
expect(screen.queryByText('No results found')).not.toBeInTheDocument();
74-
expect(screen.queryByText('Member Location')).not.toBeInTheDocument();
75-
expect(screen.getByText('Avatar Stack')).toBeInTheDocument();
74+
expect(screen.queryByText('Member location')).not.toBeInTheDocument();
75+
expect(screen.getByText('Avatar stack')).toBeInTheDocument();
7676
});
7777

7878
it('filters examples based on product filter selection', () => {
@@ -84,7 +84,7 @@ describe('ExamplesContent', () => {
8484
const productFilterInput = screen.getByTestId('product-spaces');
8585
fireEvent.click(productFilterInput);
8686

87-
expect(screen.queryByText('Online Status')).not.toBeInTheDocument();
88-
expect(screen.getByText('Member Location')).toBeInTheDocument();
87+
expect(screen.queryByText('Online status')).not.toBeInTheDocument();
88+
expect(screen.getByText('Member location')).toBeInTheDocument();
8989
});
9090
});

src/data/examples/index.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const DEFAULT_EXAMPLE_LANGUAGES = ['javascript', 'react'];
55
export const examples: Example[] = [
66
{
77
id: 'chat-presence',
8-
name: 'Chat Presence',
8+
name: 'Chat presence',
99
description: 'Show online/offline status of users in a chat application.',
1010
products: ['chat'],
1111
layout: 'double-horizontal',
@@ -15,7 +15,7 @@ export const examples: Example[] = [
1515
},
1616
{
1717
id: 'chat-room-history',
18-
name: 'Room History',
18+
name: 'Room history',
1919
description: 'Display message history in chat rooms.',
2020
products: ['chat'],
2121
layout: 'single-horizontal',
@@ -25,7 +25,7 @@ export const examples: Example[] = [
2525
},
2626
{
2727
id: 'chat-room-messages',
28-
name: 'Chat Messages',
28+
name: 'Chat messages',
2929
description: 'Implement realtime messaging in chat rooms.',
3030
products: ['chat'],
3131
layout: 'double-vertical',
@@ -35,7 +35,7 @@ export const examples: Example[] = [
3535
},
3636
{
3737
id: 'chat-room-reactions',
38-
name: 'Room Reactions',
38+
name: 'Room reactions',
3939
description: 'Add emoji reactions to messages in chat rooms.',
4040
products: ['chat'],
4141
layout: 'double-vertical',
@@ -45,7 +45,7 @@ export const examples: Example[] = [
4545
},
4646
{
4747
id: 'chat-typing-indicator',
48-
name: 'Typing Indicator',
48+
name: 'Typing indicator',
4949
description: 'Show when users are typing in a chat room.',
5050
products: ['chat'],
5151
layout: 'double-vertical',
@@ -77,7 +77,7 @@ export const examples: Example[] = [
7777
},
7878
{
7979
id: 'pub-sub-channel-messages',
80-
name: 'Channel Messages',
80+
name: 'Channel messages',
8181
description: 'Implement pub/sub messaging using channels.',
8282
products: ['pubsub'],
8383
layout: 'single-vertical',
@@ -87,7 +87,7 @@ export const examples: Example[] = [
8787
},
8888
{
8989
id: 'pub-sub-channel-state',
90-
name: 'Channel State',
90+
name: 'Channel state',
9191
description: 'Monitor and react to channel state changes.',
9292
products: ['pubsub'],
9393
layout: 'single-vertical',
@@ -97,7 +97,7 @@ export const examples: Example[] = [
9797
},
9898
{
9999
id: 'pub-sub-connection-state',
100-
name: 'Connection State',
100+
name: 'Connection state',
101101
description: 'Handle connection state changes in pub/sub applications.',
102102
products: ['pubsub'],
103103
layout: 'single-vertical',
@@ -107,7 +107,7 @@ export const examples: Example[] = [
107107
},
108108
{
109109
id: 'pub-sub-history',
110-
name: 'Message History',
110+
name: 'Message history',
111111
description: 'Retrieve historical messages from channels.',
112112
products: ['pubsub'],
113113
layout: 'single-vertical',
@@ -117,7 +117,7 @@ export const examples: Example[] = [
117117
},
118118
{
119119
id: 'pub-sub-message-encryption',
120-
name: 'Message Encryption',
120+
name: 'Message encryption',
121121
description: 'Implement end-to-end encryption for pub/sub messages.',
122122
products: ['pubsub'],
123123
layout: 'double-horizontal',
@@ -127,7 +127,7 @@ export const examples: Example[] = [
127127
},
128128
{
129129
id: 'pub-sub-occupancy',
130-
name: 'Channel Occupancy',
130+
name: 'Channel occupancy',
131131
description: 'Monitor the number of subscribers on a channel.',
132132
products: ['pubsub'],
133133
layout: 'single-horizontal',
@@ -157,7 +157,7 @@ export const examples: Example[] = [
157157
},
158158
{
159159
id: 'spaces-avatar-stack',
160-
name: 'Avatar Stack',
160+
name: 'Avatar stack',
161161
description: 'Display stacked avatars for users in a space.',
162162
products: ['spaces'],
163163
layout: 'double-vertical',
@@ -167,7 +167,7 @@ export const examples: Example[] = [
167167
},
168168
{
169169
id: 'spaces-component-locking',
170-
name: 'Component Locking',
170+
name: 'Component locking',
171171
description: 'Implement component-level locking in collaborative spaces.',
172172
products: ['spaces'],
173173
layout: 'double-horizontal',
@@ -185,7 +185,7 @@ export const examples: Example[] = [
185185
},
186186
{
187187
id: 'spaces-live-cursors',
188-
name: 'Live Cursors',
188+
name: 'Live cursors',
189189
description: 'Show realtime cursor positions of users in a space.',
190190
products: ['spaces'],
191191
layout: 'double-vertical',
@@ -203,7 +203,7 @@ export const examples: Example[] = [
203203
},
204204
{
205205
id: 'spaces-member-location',
206-
name: 'Member Location',
206+
name: 'Member location',
207207
description: 'Track and display member locations within a space.',
208208
products: ['spaces'],
209209
layout: 'double-horizontal',

0 commit comments

Comments
 (0)