mv index.ts to src dir

This commit is contained in:
Amaury Joly 2021-04-10 17:42:40 +02:00
parent abce92964e
commit 533d71e85e
4 changed files with 6 additions and 5 deletions

View File

@ -1 +0,0 @@
export { ManageListener } from "./src/manage-listener";

View File

@ -2,7 +2,8 @@
"name": "gestion-listener",
"version": "1.0.0",
"description": "",
"main": "index.js",
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"test": "cross-env TS_NODE_PROJECT='./tests/tsconfig.json' mocha --require ts-node/register ./tests/**/*-spec.ts",
"build": "tsc -p ./src"
@ -33,7 +34,7 @@
"typescript": "^4.1.3"
},
"dependencies": {
"listener-rss": "file:../listener-rss"
"listener-rss": "file:../listener-rss",
"sqlite3": "^5.0.2"
}
}

1
src/index.ts Normal file
View File

@ -0,0 +1 @@
export { ManageListener } from "./manage-listener";

View File

@ -53,7 +53,7 @@ describe("test class GestionListener", function () {
fs.unlinkSync("tests/RessourcesTest/FakeRessources/fake_save.json");
});
it.only("should save the inserted objects", function (): void {
it("should save the inserted objects", function (): void {
// given
const ml = new ManageListener();
let expectedObj: ListenerRss[] = [];
@ -292,7 +292,7 @@ describe("test class GestionListener", function () {
path: "tests/RessourcesTest/RealRessources/save_no_history.json",
});
const updateSpy = sinon.spy();
const updateSpy = sinon.spy((obj) => console.log(obj));
const newEntriesSpy = sinon.spy();
const tabChannelId = [