We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d308f8 commit 9d2190aCopy full SHA for 9d2190a
1 file changed
extensions/ql-vscode/test/vscode-tests/cli-integration/variant-analysis/variant-analysis-manager.test.ts
@@ -41,7 +41,8 @@ function toExistInPack(
41
}
42
43
const pass = packFS.fileExists(actual);
44
- const files = packFS.allFiles().join("\n");
+ const files = packFS.allFiles();
45
+ const filesString = files.length > 0 ? files.join("\n") : "<none>";
46
if (pass) {
47
return {
48
pass: true,
@@ -51,7 +52,7 @@ function toExistInPack(
51
52
53
pass: false,
54
message: () =>
- `expected ${actual} to exist in pack. The following files were found in the pack:\n${files}`,
55
+ `expected ${actual} to exist in pack.\nThe following files were found in the pack:\n${filesString}`,
56
};
57
58
0 commit comments