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.
31 lines
629 B
31 lines
629 B
'use strict';
|
|
|
|
var chai = chai || require('chai');
|
|
var should = chai.should();
|
|
var mute = require('./mute').mute;
|
|
var unmute = require('./mute').unmute;
|
|
|
|
var examples = [
|
|
'Address',
|
|
'BIP32',
|
|
'PeerManager',
|
|
'Rpc',
|
|
'SendTx',
|
|
'CreateScript',
|
|
'CreateKey',
|
|
'CreateAndSignTx-Multisig',
|
|
'CreateAndSignTx-PayToPubkeyHash',
|
|
'CreateAndSignTx-PayToScriptHash',
|
|
'Script',
|
|
];
|
|
|
|
describe('Examples', function() {
|
|
before(mute);
|
|
after(unmute);
|
|
examples.forEach(function(example) {
|
|
it('valid '+example, function() {
|
|
var ex = require('../examples/'+example);
|
|
ex.run.should.not.throw();
|
|
});
|
|
});
|
|
});
|
|
|