Skip to content

Commit

Permalink
Merge pull request #179 from skalenetwork/enhancement/SKALE-2394-hand…
Browse files Browse the repository at this point in the history
…le-ws

SKALE-2394 Handle ws
  • Loading branch information
DmytroNazarenko committed Oct 8, 2021
2 parents 3aee940 + 2d5fed1 commit c9812aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ describe('Test FilestorageClient', function () {
assert.instanceOf(filestorageClient.contract, FilestorageContract);
});

it('should initialize with ws endpoint', async function () {
let filestorageClient = new FilestorageClient('ws://127.0.0.1:1234');
assert.instanceOf(filestorageClient, FilestorageClient);
assert.instanceOf(filestorageClient.web3, Web3);
assert.instanceOf(filestorageClient.contract, FilestorageContract);
});

it('should initialize with enabled logs', function () {
let filestorageClient = new FilestorageClient(process.env.SKALE_ENDPOINT, true);
assert.isTrue(filestorageClient.enableLogs);
Expand Down

0 comments on commit c9812aa

Please sign in to comment.