Skip to content

Commit 0258194

Browse files
committed
chore: fix TS
1 parent d030a18 commit 0258194

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/__tests__/config.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +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' },
38+
hostComponentNames: { text: 'A', textInput: 'A', switch: 'A' },
39+
});
40+
expect(getConfig().hostComponentNames).toEqual({
41+
text: 'A',
42+
textInput: 'A',
43+
switch: 'A',
3944
});
40-
expect(getConfig().hostComponentNames).toEqual({ text: 'A', textInput: 'A' });
4145

4246
resetToDefaults();
4347
expect(getConfig().hostComponentNames).toBe(undefined);

0 commit comments

Comments
 (0)