mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Default NoticeController ctor opts to empty obj
This commit is contained in:
parent
f157d5371a
commit
13bc46d824
@ -7,7 +7,7 @@ const uniqBy = require('lodash.uniqby')
|
|||||||
|
|
||||||
module.exports = class NoticeController extends EventEmitter {
|
module.exports = class NoticeController extends EventEmitter {
|
||||||
|
|
||||||
constructor (opts) {
|
constructor (opts = {}) {
|
||||||
super()
|
super()
|
||||||
this.noticePoller = null
|
this.noticePoller = null
|
||||||
this.firstVersion = opts.firstVersion
|
this.firstVersion = opts.firstVersion
|
||||||
|
@ -5,7 +5,7 @@ describe('notice-controller', function () {
|
|||||||
var noticeController
|
var noticeController
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
noticeController = new NoticeController({})
|
noticeController = new NoticeController()
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('notices', function () {
|
describe('notices', function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user