1
0
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:
Whymarrh Whitby 2018-09-11 12:12:35 -07:00
parent f157d5371a
commit 13bc46d824
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -5,7 +5,7 @@ describe('notice-controller', function () {
var noticeController
beforeEach(function () {
noticeController = new NoticeController({})
noticeController = new NoticeController()
})
describe('notices', function () {