Skip to content
Open
Changes from all commits
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: 5 additions & 5 deletions test/client_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ 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 reject `regtest` because it is not in the Bitgesell network map', () => {
should(() => new Client({ network: 'regtest' })).throw('Invalid network name "regtest"');
});

it('should not have ssl enabled by default', () => {
Expand Down