fioxing lint errors, and adding unit tests!

This commit is contained in:
vladlv
2017-04-12 10:29:29 +03:00
parent 22c9625421
commit 9d33294f1d
2 changed files with 17 additions and 4 deletions

View File

@@ -0,0 +1,13 @@
import {DM, Event, EventId} from 'debessmann';
let eventId: EventId = {seq: 0, time: new Date()};
let e: Event = {_id: eventId, headers: {'header1': 'header1Val'}};
let dm: DM = {
init(endpoint: string, auth: string): void {
},
send(data: Event): void {
}
};
dm.init("ep.debessmann.com", "AUTHID");
dm.send(e);