added test's setup

This commit is contained in:
Amaury
2021-03-14 18:18:29 +01:00
parent 77a15bda31
commit 10bc3b9584
4 changed files with 69 additions and 8 deletions

View File

@ -1,5 +1,19 @@
import {} from "";
import { ListenerRss, ListenerRSSInfos } from "listener-rss/src/";
/**
* Permit to manage a ListenerRSS array, data storage and event aggregation
*/
export class GestionListener {
GestionListener(): any {}
listenerArray: ListenerRss[] = [];
GestionListener(path?: string): void {
if (path) {
// load a file or a bdd
} else {
// keep the class empty
}
}
addNewListener(info: ListenerRSSInfos): void {
this.listenerArray.concat(new ListenerRss(info));
}
}