Skip to content

Commit 508ad32

Browse files
committed
chore: fix lint
1 parent 0bd9947 commit 508ad32

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/__tests__/config.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getConfig, configure, resetToDefaults, configureInternal } from '../config';
1+
import { getConfig, configure, resetToDefaults } from '../config';
22

33
beforeEach(() => {
44
resetToDefaults();
@@ -34,7 +34,7 @@ test('resetToDefaults() resets config to defaults', () => {
3434
});
3535

3636
test('resetToDefaults() resets internal config to defaults', () => {
37-
configureInternal({ asyncUtilTimeout: 2000 });
37+
configure({ asyncUtilTimeout: 2000 });
3838
expect(getConfig().asyncUtilTimeout).toBe(2000);
3939

4040
resetToDefaults();

src/config.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,6 @@ export function configure(options: Partial<Config & ConfigAliasOptions>) {
5252
};
5353
}
5454

55-
export function configureInternal(option: Partial<InternalConfig>) {
56-
config = {
57-
...config,
58-
...option,
59-
};
60-
}
61-
6255
export function resetToDefaults() {
6356
config = { ...defaultConfig };
6457
}

0 commit comments

Comments
 (0)