Browse Source

tests: add more test fixtures for blocks

hk-custom-address
Daniel Cousens 9 years ago
parent
commit
15227d39bf
  1. 4
      test/block.js
  2. 48
      test/fixtures/block.json

4
test/block.js

@ -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

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save