fix mascara warnings

This commit is contained in:
brunobar79 2018-07-02 19:36:16 -04:00
parent 35d83c478a
commit 03ff8a7cfa
3 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,4 @@
function wait (time) {
export default function wait (time) {
return new Promise(function (resolve, reject) {
setTimeout(function () {
resolve()

View File

@ -1,5 +1,3 @@
const Helper = require('./util/mascara-test-helper.js')
window.addEventListener('load', () => {
window.METAMASK_SKIP_RELOAD = true
// inject app container

View File

@ -2,15 +2,16 @@ const EventEmitter = require('events')
const IDB = require('idb-global')
const KEY = 'metamask-test-config'
module.exports = class Helper extends EventEmitter {
constructor () {
super()
}
tryToCleanContext () {
this.unregister()
.then(() => this.clearDb())
.then(() => super.emit('complete'))
.catch((err) => super.emit('complete'))
.catch((err) => {
if (err) {
super.emit('complete')
}
})
}
unregister () {