Skip to content

Commit

Permalink
SKALE-2394 Add ws unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
DmytroNazarenko committed Oct 7, 2021
1 parent 3aee940 commit 2d5fed1
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 2d5fed1

Please sign in to comment.