Browse Source

tests: use beforeEach for initialization

hk-custom-address
Daniel Cousens 10 years ago
parent
commit
7a515a14ee
  1. 8
      test/transaction.js

8
test/transaction.js

@ -200,8 +200,12 @@ describe('Transaction', function() {
describe('clone', function() {
fixtures.valid.forEach(function(f) {
var expected = Transaction.fromHex(f.hex)
var actual = expected.clone()
var actual, expected
beforeEach(function() {
expected = Transaction.fromHex(f.hex)
actual = expected.clone()
})
it('should have value equality', function() {
assert.deepEqual(actual, expected)

Loading…
Cancel
Save