Skip to content

Commit

Permalink
improving coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tywalch committed Mar 14, 2022
1 parent 27e89b0 commit 1b9026e
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions test/ts_connected.logger.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function createTestService(logger?: EventListener, listeners?: EventListener[])
return new Service({
entity1,
entity2,
});
}, {client, table, logger, listeners});
}

type TestEntityCreateEntityItem = CreateEntityItem<ReturnType<typeof createTestEntity>>
Expand Down Expand Up @@ -123,18 +123,6 @@ const eventProperties: EventProperties = {
results: ['config', 'method', 'results', 'success', 'type']
};

// const keys = {} as (keyof EventProperties);

// expectAssignable<ElectroEventType>(keys);

// function expectKeys(type: any, event: ElectroEvent) {
// if (type in eventProperties) {
// expect(Object.keys(event)).to.include(eventProperties[type]);
// } else {
// throw new Error(`Unknown type: ${type}`);
// }
// }

async function testListeners(fn: TestListenerCallback) {
const events: TestLoggerEvents = new Map();
const names = {
Expand Down Expand Up @@ -211,7 +199,6 @@ describe("listener functions", async () => {
return {
query: entity.put({ prop1, prop2, prop3, prop4 }),
test: (events) => equalCallCount(1, events),

};
});
});
Expand Down

0 comments on commit 1b9026e

Please sign in to comment.