Skip to content

Commit

Permalink
Small unit test bug fixes (#1308)
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-bsaviano authored Feb 2, 2024
1 parent dae3538 commit 8546571
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@
"scope": "resource",
"items": {
"type": "string",
"pattern": "^([\\p{L}\\d_. -]+([\\/\\\\][\\p{L}\\d_. -]*))?$",
"pattern": "^([\\p{L}\\d_. -]+([\\/\\\\][\\p{L}\\d_. -]+)*)?$",
"patternErrorMessage": "Each folder name can only contain letters, digits, space, hyphen ('-'), period ('.'), or underscore ('_'), and the full path must neither begin nor end with a slash."
}
},
Expand Down
2 changes: 2 additions & 0 deletions src/commands/unitTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ async function runHandler(
});
if (test.parent.uri.scheme == "file") {
// Add this class to the list to load
if (asyncRequest.load == undefined) asyncRequest.load = [];
asyncRequest.load.push({
file: test.parent.uri.fsPath,
content: textDecoder.decode(await vscode.workspace.fs.readFile(test.parent.uri)).split(/\r?\n/),
Expand Down Expand Up @@ -554,6 +555,7 @@ async function runHandler(
}
if (test.uri.scheme == "file") {
// Add this class to the list to load
if (asyncRequest.load == undefined) asyncRequest.load = [];
asyncRequest.load.push({
file: test.uri.fsPath,
content: textDecoder.decode(await vscode.workspace.fs.readFile(test.uri)).split(/\r?\n/),
Expand Down

0 comments on commit 8546571

Please sign in to comment.