Skip to content

Commit dae1a38

Browse files
thiagobrezmdjastrzebski
authored andcommitted
chore: fix tests to host component names
1 parent 2e2fdff commit dae1a38

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/__tests__/config.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ test('resetToDefaults() resets config to defaults', () => {
3535

3636
test('resetToDefaults() resets internal config to defaults', () => {
3737
configureInternal({
38-
hostComponentNames: { text: 'A', textInput: 'A', switch: 'A' },
38+
hostComponentNames: { text: 'A', textInput: 'A', switch: 'A', modal: 'A' },
3939
});
4040
expect(getConfig().hostComponentNames).toEqual({
4141
text: 'A',
4242
textInput: 'A',
4343
switch: 'A',
44+
modal: 'A',
4445
});
4546

4647
resetToDefaults();

src/__tests__/host-component-names.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ describe('getHostComponentNames', () => {
2121
text: 'banana',
2222
textInput: 'banana',
2323
switch: 'banana',
24+
modal: 'banana',
2425
},
2526
});
2627

2728
expect(getHostComponentNames()).toEqual({
2829
text: 'banana',
2930
textInput: 'banana',
3031
switch: 'banana',
32+
modal: 'banana',
3133
});
3234
});
3335

@@ -40,6 +42,7 @@ describe('getHostComponentNames', () => {
4042
text: 'Text',
4143
textInput: 'TextInput',
4244
switch: 'RCTSwitch',
45+
modal: 'Modal',
4346
});
4447
expect(getConfig().hostComponentNames).toBe(hostComponentNames);
4548
});
@@ -68,6 +71,7 @@ describe('configureHostComponentNamesIfNeeded', () => {
6871
text: 'Text',
6972
textInput: 'TextInput',
7073
switch: 'RCTSwitch',
74+
modal: 'Modal',
7175
});
7276
});
7377

@@ -77,6 +81,7 @@ describe('configureHostComponentNamesIfNeeded', () => {
7781
text: 'banana',
7882
textInput: 'banana',
7983
switch: 'banana',
84+
modal: 'banana',
8085
},
8186
});
8287

@@ -86,6 +91,7 @@ describe('configureHostComponentNamesIfNeeded', () => {
8691
text: 'banana',
8792
textInput: 'banana',
8893
switch: 'banana',
94+
modal: 'banana',
8995
});
9096
});
9197

0 commit comments

Comments
 (0)