mv index.ts to src dir
This commit is contained in:
parent
abce92964e
commit
533d71e85e
|
@ -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
1
src/index.ts
Normal file
|
@ -0,0 +1 @@
|
|||
export { ManageListener } from "./manage-listener";
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue
Block a user