You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
550 B
26 lines
550 B
10 years ago
|
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)
|
||
|
}))
|
||
|
})
|