Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed dup check in address test #3247

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
9 changes: 4 additions & 5 deletions packages/bitcore-lib/test/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ describe('Address', function() {
it('should make an address from a buffer', function() {
Address.fromBuffer(buf).toString().should.equal(str);
new Address(buf).toString().should.equal(str);
new Address(buf).toString().should.equal(str);
});

it('should make an address from a string', function() {
Expand Down Expand Up @@ -509,14 +508,14 @@ describe('Address', function() {
it('should detect a P2SH address', function() {
new Address(P2SHLivenet[0]).isPayToScriptHash().should.equal(true);
new Address(P2SHLivenet[0]).isPayToPublicKeyHash().should.equal(false);
new Address(P2SHTestnet[0]).isPayToScriptHash().should.equal(true);
new Address(P2SHTestnet[0]).isPayToPublicKeyHash().should.equal(false);
new Address(P2SHTestnet[0]).isPayToWitnessScriptHash().should.equal(false);
new Address(P2SHTestnet[0]).isPayToWitnessPublicKeyHash().should.equal(false);
});
it('should detect a Pay To PubkeyHash address', function() {
new Address(PKHLivenet[0]).isPayToPublicKeyHash().should.equal(true);
new Address(PKHLivenet[0]).isPayToScriptHash().should.equal(false);
new Address(PKHTestnet[0]).isPayToPublicKeyHash().should.equal(true);
new Address(PKHTestnet[0]).isPayToScriptHash().should.equal(false);
new Address(PKHTestnet[0]).isPayToWitnessScriptHash().should.equal(false);
new Address(PKHTestnet[0]).isPayToWitnessPublicKeyHash().should.equal(false);
});
});

Expand Down