1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | class TestConnector {
|
4 | constructor() {
|
5 | this.newConvoCount = 0;
|
6 | }
|
7 | onEvent(handler) {
|
8 | this.onEventHandler = handler;
|
9 | }
|
10 | send(messages, done) {
|
11 | done(null, messages.map((m) => m.address));
|
12 | }
|
13 | startConversation(address, cb) {
|
14 | const adr = Object.assign({}, address);
|
15 | adr.conversation = { id: `Convo${this.newConvoCount++}` };
|
16 | cb(null, adr);
|
17 | }
|
18 | }
|
19 | exports.TestConnector = TestConnector;
|
20 |
|
\ | No newline at end of file |