Pass additional options with run-package-specs message

This commit is contained in:
Ash Wilson
2018-08-22 10:28:20 -04:00
parent 592722d094
commit 42c75ecbe5

View File

@@ -310,7 +310,7 @@ class WorkspaceElement extends HTMLElement {
}
}
runPackageSpecs () {
runPackageSpecs (options = {}) {
const activePaneItem = this.model.getActivePaneItem()
const activePath = activePaneItem && typeof activePaneItem.getPath === 'function' ? activePaneItem.getPath() : null
let projectPath
@@ -326,7 +326,7 @@ class WorkspaceElement extends HTMLElement {
specPath = testPath
}
ipcRenderer.send('run-package-specs', specPath)
ipcRenderer.send('run-package-specs', specPath, options)
}
}