tests: fix standard format adherence
This commit is contained in:
parent
6775e1a9af
commit
9fddacd448
@ -1,4 +1,4 @@
|
|||||||
/* global describe, it, beforeEach, afterEach */
|
/* global describe, it */
|
||||||
/* eslint-disable no-new */
|
/* eslint-disable no-new */
|
||||||
|
|
||||||
var assert = require('assert')
|
var assert = require('assert')
|
||||||
@ -102,7 +102,7 @@ describe('ECKey', function () {
|
|||||||
var exBuffer = exPrivKey.d.toBuffer(32)
|
var exBuffer = exPrivKey.d.toBuffer(32)
|
||||||
|
|
||||||
it("uses the RNG provided by the 'randombytes' module by default", function () {
|
it("uses the RNG provided by the 'randombytes' module by default", function () {
|
||||||
var stub = { randombytes: function() { return exBuffer } }
|
var stub = { randombytes: function () { return exBuffer } }
|
||||||
var ProxiedECKey = proxyquire('../src/eckey', stub)
|
var ProxiedECKey = proxyquire('../src/eckey', stub)
|
||||||
|
|
||||||
var privKey = ProxiedECKey.makeRandom()
|
var privKey = ProxiedECKey.makeRandom()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user