Omit missing windows from the shorthand assertion summary

This commit is contained in:
Ash Wilson
2019-04-19 12:05:16 -04:00
parent 91dce7faba
commit 37e471b315

View File

@@ -832,17 +832,19 @@ class LaunchScenario {
missingRoots: spec.roots,
extraEditors: [],
missingEditors: spec.editors,
roots: [],
editors: []
roots: null,
editors: null
})
}
const shorthandParts = []
const descriptionParts = []
for (const comparison of comparisons) {
const shortRoots = Array.from(comparison.roots, r => path.basename(r)).join(',')
const shortPaths = Array.from(comparison.editors, e => path.basename(e)).join(',')
shorthandParts.push(`[${shortRoots} ${shortPaths}]`)
if (comparison.roots !== null && comparison.editors !== null) {
const shortRoots = Array.from(comparison.roots, r => path.basename(r)).join(',')
const shortPaths = Array.from(comparison.editors, e => path.basename(e)).join(',')
shorthandParts.push(`[${shortRoots} ${shortPaths}]`)
}
if (comparison.ok) {
continue