We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 992b320 commit a88778dCopy full SHA for a88778d
test.js
@@ -310,6 +310,12 @@ describe('ChainlinkDataStreamsConsumer', function () {
310
assert.throws(() => client.feeds.clear());
311
});
312
313
+ it("automatically disconnects when feeds are set to []", function () {
314
+ const client = new ChainlinkDataStreamsConsumer({...config(), feeds: feedIds, lazy: true });
315
+ assert.ok(client.feeds.size > 0);
316
+ client.feeds = []
317
+ });
318
+
319
it('should fetch a report for a single feed and validate the instance', async function () {
320
for (const feed of feedIds) {
321
const report = await new ChainlinkDataStreamsConsumer(config()).fetchFeed({
0 commit comments