- Fix a bug (introduced in 1b9be8fe) preventing the tree view from being
visible during a search.
- Fix a minor bug where the scripts view does not render based on the
initial filter.
- Add Vue component tests for `TheScriptView` to prevent regressions.
- Refactor `isSearching` in `TheScriptView` to simplify its logic.
15 lines
514 B
TypeScript
15 lines
514 B
TypeScript
import { IEventSubscription } from '@/infrastructure/Events/IEventSource';
|
|
import { IEventSubscriptionCollection } from '@/infrastructure/Events/IEventSubscriptionCollection';
|
|
|
|
export class EventSubscriptionCollectionStub implements IEventSubscriptionCollection {
|
|
private readonly subscriptions = new Array<IEventSubscription>();
|
|
|
|
public register(...subscriptions: IEventSubscription[]) {
|
|
this.subscriptions.push(...subscriptions);
|
|
}
|
|
|
|
public unsubscribeAll() {
|
|
this.subscriptions.length = 0;
|
|
}
|
|
}
|