1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

Skip popup dismissal in tests

This commit is contained in:
Dan Finlay 2016-08-23 11:48:46 -07:00
parent 983f3938da
commit b3887ffd0a

View File

@ -24,6 +24,12 @@ function showNotification() {
}
function getPopup(cb) {
// Ignore in test environment
if (!extension.windows) {
return cb(null)
}
extension.windows.getAll({}, (windows) => {
let popup = windows.find((win) => {
return win.type === 'popup'