tests: add more test fixtures for blocks
This commit is contained in:
parent
723c2fe37a
commit
15227d39bf
2 changed files with 42 additions and 10 deletions
|
@ -52,7 +52,7 @@ describe('Block', function () {
|
|||
block = Block.fromHex(f.hex)
|
||||
})
|
||||
|
||||
it('calculates ' + f.hash + ' for the block: ' + f.description, function () {
|
||||
it('returns ' + f.hash + ' for the block: ' + f.description, function () {
|
||||
assert.strictEqual(block.getHash().toString('hex'), f.hash)
|
||||
})
|
||||
})
|
||||
|
@ -66,7 +66,7 @@ describe('Block', function () {
|
|||
block = Block.fromHex(f.hex)
|
||||
})
|
||||
|
||||
it('calculates ' + f.id + ' for the block: ' + f.description, function () {
|
||||
it('returns ' + f.id + ' for the block: ' + f.description, function () {
|
||||
assert.strictEqual(block.getId(), f.id)
|
||||
})
|
||||
})
|
||||
|
|
48
test/fixtures/block.json
vendored
48
test/fixtures/block.json
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue