base58check: add deprecation warnings
This commit is contained in:
parent
307ceb9026
commit
395ef6ed85
3 changed files with 44 additions and 1 deletions
test
25
test/base58check.js
Normal file
25
test/base58check.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
var base58check = require('../src/base58check')
|
||||
var bs58check = require('bs58check')
|
||||
var sinon = require('sinon')
|
||||
|
||||
describe('base58check', function() {
|
||||
var param
|
||||
|
||||
beforeEach(function() {
|
||||
param = {}
|
||||
})
|
||||
|
||||
it('wraps bs58check.decode', sinon.test(function() {
|
||||
this.mock(bs58check).expects('decode')
|
||||
.once().calledWith(param)
|
||||
|
||||
base58check.decode(param)
|
||||
}))
|
||||
|
||||
it('wraps bs58check.encode', sinon.test(function() {
|
||||
this.mock(bs58check).expects('encode')
|
||||
.once().calledWith(param)
|
||||
|
||||
base58check.encode(param)
|
||||
}))
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue