Skip popup dismissal in tests

This commit is contained in:
Dan Finlay 2016-08-23 11:48:46 -07:00
parent 983f3938da
commit b3887ffd0a
1 changed files with 6 additions and 0 deletions

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'