Skip to content

Commit 4059cb9

Browse files
author
afedorov
committed
docs: improved docs
1 parent 5b03e8e commit 4059cb9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/modules/nats/src/nats-container.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ describe("NatsContainer", () => {
6969

7070
// JetStream {
7171
it("should start with JetStream ", async () => {
72-
// set username and password like this
72+
// enable JS
7373
const container = await new NatsContainer().withJS().start();
7474

7575
const nc = await connect(container.getConnectionOptions());
7676

7777
// just take manager for check js
78-
const jsm = await nc.jetstream().jetstreamManager()
78+
await nc.jetstream().jetstreamManager()
7979

8080
// close the connection
8181
await nc.close();
@@ -87,7 +87,6 @@ describe("NatsContainer", () => {
8787
});
8888

8989
it("should fail without JetStream ", async () => {
90-
// set username and password like this
9190
const container = await new NatsContainer().start();
9291

9392
const nc = await connect(container.getConnectionOptions());

0 commit comments

Comments
 (0)