tests: use beforeEach for initialization
This commit is contained in:
parent
4bcd169f6d
commit
7a515a14ee
1 changed files with 6 additions and 2 deletions
|
@ -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…
Reference in a new issue