tests: use strictEqual always
This commit is contained in:
parent
ab66c983af
commit
ec9cea0cf1
19 changed files with 186 additions and 186 deletions
test
|
@ -12,12 +12,12 @@ describe('Block', function () {
|
|||
it('imports the block: ' + f.description + ' correctly', function () {
|
||||
var block = Block.fromHex(f.hex)
|
||||
|
||||
assert.equal(block.version, f.version)
|
||||
assert.equal(block.prevHash.toString('hex'), f.prevHash)
|
||||
assert.equal(block.merkleRoot.toString('hex'), f.merkleRoot)
|
||||
assert.equal(block.timestamp, f.timestamp)
|
||||
assert.equal(block.bits, f.bits)
|
||||
assert.equal(block.nonce, f.nonce)
|
||||
assert.strictEqual(block.version, f.version)
|
||||
assert.strictEqual(block.prevHash.toString('hex'), f.prevHash)
|
||||
assert.strictEqual(block.merkleRoot.toString('hex'), f.merkleRoot)
|
||||
assert.strictEqual(block.timestamp, f.timestamp)
|
||||
assert.strictEqual(block.bits, f.bits)
|
||||
assert.strictEqual(block.nonce, f.nonce)
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -39,7 +39,7 @@ describe('Block', function () {
|
|||
})
|
||||
|
||||
it('exports the block: ' + f.description + ' correctly', function () {
|
||||
assert.equal(block.toHex(), f.hex)
|
||||
assert.strictEqual(block.toHex(), f.hex)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
@ -53,7 +53,7 @@ describe('Block', function () {
|
|||
})
|
||||
|
||||
it('calculates ' + f.hash + ' for the block: ' + f.description, function () {
|
||||
assert.equal(block.getHash().toString('hex'), f.hash)
|
||||
assert.strictEqual(block.getHash().toString('hex'), f.hash)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
@ -67,7 +67,7 @@ describe('Block', function () {
|
|||
})
|
||||
|
||||
it('calculates ' + f.id + ' for the block: ' + f.description, function () {
|
||||
assert.equal(block.getId(), f.id)
|
||||
assert.strictEqual(block.getId(), f.id)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
@ -83,7 +83,7 @@ describe('Block', function () {
|
|||
it('returns UTC date of ' + f.id, function () {
|
||||
var utcDate = block.getUTCDate().getTime()
|
||||
|
||||
assert.equal(utcDate, f.timestamp * 1e3)
|
||||
assert.strictEqual(utcDate, f.timestamp * 1e3)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue