Skip popup dismissal in tests

feature/default_network_editable
Dan Finlay 8 years ago
parent 983f3938da
commit b3887ffd0a
  1. 6
      app/scripts/lib/notifications.js

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

Loading…
Cancel
Save