* Resets the singleton instance for tests.
()
| 95 | * Resets the singleton instance for tests. |
| 96 | */ |
| 97 | public static resetInstance(): void { |
| 98 | if (CleanupQueue.instance) { |
| 99 | if (CleanupQueue.instance.timeoutId !== null) { |
| 100 | clearTimeout(CleanupQueue.instance.timeoutId) |
| 101 | } |
| 102 | CleanupQueue.instance = null |
| 103 | } |
| 104 | } |
| 105 | } |
no outgoing calls
no test coverage detected