test/txmeta: fix lint
This commit is contained in:
parent
5c26307db1
commit
b371b3ecda
@ -9,18 +9,17 @@ const TXMeta = require('../lib/primitives/txmeta');
|
|||||||
|
|
||||||
const network = Network.get('regtest');
|
const network = Network.get('regtest');
|
||||||
|
|
||||||
|
|
||||||
describe('TXMeta', function() {
|
describe('TXMeta', function() {
|
||||||
it('should return JSON for txmeta', async () => {
|
it('should return JSON for txmeta', async () => {
|
||||||
// unconfirmed at height 100
|
// unconfirmed at height 100
|
||||||
const txmeta1 = new TXMeta();
|
const txmeta1 = new TXMeta();
|
||||||
const txJSON1 = txmeta1.getJSON(network, null, 100)
|
const txJSON1 = txmeta1.getJSON(network, null, 100);
|
||||||
assert.strictEqual(txJSON1.confirmations, 0);
|
assert.strictEqual(txJSON1.confirmations, 0);
|
||||||
|
|
||||||
// confirmed once at height 100
|
// confirmed once at height 100
|
||||||
const txmeta2 = TXMeta.fromOptions( {height: 100} );
|
const txmeta2 = TXMeta.fromOptions( {height: 100} );
|
||||||
txmeta2.height = 100;
|
txmeta2.height = 100;
|
||||||
const txJSON2 = txmeta2.getJSON(network, null, 100)
|
const txJSON2 = txmeta2.getJSON(network, null, 100);
|
||||||
assert.strictEqual(txJSON2.confirmations, 1);
|
assert.strictEqual(txJSON2.confirmations, 1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user