Skip to content

Commit 0ae5d40

Browse files
committed
Silence compiler warning in smoke tests
Signed-off-by: David Thompson <davthomp@redhat.com>
1 parent 6dc8906 commit 0ae5d40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

smoke-test/smoke.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ suite('Smoke test suite', function () {
1717
let unformattedUri: URI;
1818

1919
this.beforeAll(async function () {
20+
if (vscode.workspace.workspaceFolders === undefined) {
21+
assert.fail('No workspace folder');
22+
}
2023
const workspaceUri = vscode.workspace.workspaceFolders[0].uri;
2124
schemaInstanceUri = workspaceUri.with({
2225
path: workspaceUri.path + (workspaceUri.path.endsWith('/') ? '' : '/') + SCHEMA_INSTANCE_NAME,

0 commit comments

Comments
 (0)