Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions test/client_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,17 @@ describe('Client', () => {
});

it('should have default port set to `mainnet`\'s one', () => {
should(new Client().port).equal(8332);
should(new Client().port).equal(8454);
});

it('should set default to port `8332` if network is `mainnet`', () => {
should(new Client({ network: 'mainnet' }).port).equal(8332);
it('should set default to port `8454` if network is `mainnet`', () => {
should(new Client({ network: 'mainnet' }).port).equal(8454);
});

it('should set default to port `18332` if network is `testnet`', () => {
should(new Client({ network: 'testnet' }).port).equal(18332);
});

it('should set default to port `18332` if network is `regtest`', () => {
should(new Client({ network: 'regtest' }).port).equal(18332);
});

it('should not have ssl enabled by default', () => {
should(new Client().ssl.enabled).equal(false);
should(new Client().ssl.strict).equal(false);
Comment on lines 68 to 78
Expand Down