Skip to content

Commit 91c0318

Browse files
authored
Update init-extension.test.ts
1 parent f04389e commit 91c0318

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

test/unit/extension/init-extension.test.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,14 @@ export class InitExtensionUnitTest {
2323
private userQueue;
2424

2525
before() {
26-
try {
27-
const connection = new ConnectionManagerMock();
28-
this.ch = new ChannelManager(connection);
29-
this.ch['ch'] = <any>new ChannelMock();
30-
this.userQueue = new UserQueue();
31-
this.queueWrapper = new QueueWrapper(this.userQueue, extractMetadataByDecorator(UserQueue, 'Queue'));
32-
this.messageRouter = new MessageRouter();
33-
this.queue = new QueueManager(this.ch, this.queueWrapper);
34-
unit.spy(this.userQueue, 'onMessage');
35-
} catch (err) {
36-
console.log(err.stack);
37-
}
26+
const connection = new ConnectionManagerMock();
27+
this.ch = new ChannelManager(connection);
28+
this.ch['ch'] = <any>new ChannelMock();
29+
this.userQueue = new UserQueue();
30+
this.queueWrapper = new QueueWrapper(this.userQueue, extractMetadataByDecorator(UserQueue, 'Queue'));
31+
this.messageRouter = new MessageRouter();
32+
this.queue = new QueueManager(this.ch, this.queueWrapper);
33+
unit.spy(this.userQueue, 'onMessage');
3834
}
3935

4036
after() {

0 commit comments

Comments
 (0)