|
@ -90,8 +90,6 @@ describe('Scripts', function() { |
|
|
var pubKeys = f.pubKeys.map(ECPubKey.fromHex) |
|
|
var pubKeys = f.pubKeys.map(ECPubKey.fromHex) |
|
|
var scriptPubKey = scripts.multisigOutput(pubKeys.length, pubKeys) |
|
|
var scriptPubKey = scripts.multisigOutput(pubKeys.length, pubKeys) |
|
|
|
|
|
|
|
|
// FIXME: some missing test data for now
|
|
|
|
|
|
if (f.scriptSig) { |
|
|
|
|
|
describe('input script', function() { |
|
|
describe('input script', function() { |
|
|
it('is generated correctly for ' + scriptPubKey.toHex(), function() { |
|
|
it('is generated correctly for ' + scriptPubKey.toHex(), function() { |
|
|
var signatures = f.signatures.map(function(signature) { |
|
|
var signatures = f.signatures.map(function(signature) { |
|
@ -102,7 +100,6 @@ describe('Scripts', function() { |
|
|
assert.equal(scriptSig.toHex(), f.scriptSig) |
|
|
assert.equal(scriptSig.toHex(), f.scriptSig) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
describe('output script', function() { |
|
|
describe('output script', function() { |
|
|
it('is generated correctly for ' + scriptPubKey.toHex(), function() { |
|
|
it('is generated correctly for ' + scriptPubKey.toHex(), function() { |
|
|