add Address parameter test
This commit is contained in:
parent
cdd4df3cb3
commit
d632bbb4cd
|
@ -5,6 +5,7 @@ var expect = chai.expect;
|
|||
var should = chai.should();
|
||||
|
||||
var bitcore = require('bitcore');
|
||||
var Address = bitcore.Address;
|
||||
var Signature = bitcore.crypto.Signature;
|
||||
var Message = require('../');
|
||||
|
||||
|
@ -146,5 +147,10 @@ describe('Message', function() {
|
|||
});
|
||||
|
||||
|
||||
it('accepts Address for verification', function() {
|
||||
var verified = Message(text)
|
||||
.verify(new Address(address), signatureString);
|
||||
verified.should.equal(true);
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue