Skip to content

Commit c0bec63

Browse files
committed
Fix missing ref
1 parent 32d8557 commit c0bec63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/node-http-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ describe('Node http', function() {
4747
plugins: [require('../lib/wallet/plugin')]
4848
});
4949

50+
const witnessedBlockHashes = {};
5051
node.on('connect', (entry, block) => {
5152
const blockHash = block.hash().toString('hex');
5253
witnessedBlockHashes[blockHash] = blockHash;
@@ -169,7 +170,7 @@ describe('Node http', function() {
169170
await wclient.execute('sendupdate', [NAME0, records]);
170171
await mineBlocks(1);
171172
const resource = await nclient.get(`/resource/name/${NAME0}`);
172-
assert.deepEqual(resource, { ...records, name: NAME0, version: 0 });
173+
assert.deepEqual(resource, Object.assign(records, { name: NAME0, version: 0 }));
173174
});
174175
});
175176
});

0 commit comments

Comments
 (0)