Use test seams instead of DI in useTimeoutToggle

This commit is contained in:
Alejandro Celaya
2023-09-05 09:18:03 +02:00
parent 6926afbac1
commit 7a7884f38d
3 changed files with 13 additions and 14 deletions

View File

@@ -12,7 +12,5 @@ export const provideServices = (bottle: Bottle) => {
bottle.constant('csvToJson', csvToJson);
bottle.constant('jsonToCsv', jsonToCsv);
bottle.constant('setTimeout', window.setTimeout);
bottle.constant('clearTimeout', window.clearTimeout);
bottle.serviceFactory('useTimeoutToggle', useTimeoutToggle, 'setTimeout', 'clearTimeout');
bottle.serviceFactory('useTimeoutToggle', () => useTimeoutToggle);
};