mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +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 {
|
||||
|
||||
constructor (opts) {
|
||||
constructor (opts = {}) {
|
||||
super()
|
||||
this.noticePoller = null
|
||||
this.firstVersion = opts.firstVersion
|
||||
|
@ -5,7 +5,7 @@ describe('notice-controller', function () {
|
||||
var noticeController
|
||||
|
||||
beforeEach(function () {
|
||||
noticeController = new NoticeController({})
|
||||
noticeController = new NoticeController()
|
||||
})
|
||||
|
||||
describe('notices', function () {
|
||||
|
Loading…
Reference in New Issue
Block a user