Skip to content

Commit b113c39

Browse files
Update test/test-find-visualstudio.js
Co-authored-by: Christian Clauss <[email protected]>
1 parent 591f31c commit b113c39

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

test/test-find-visualstudio.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ class TestVisualStudioFinder extends VisualStudioFinder {
2121
}
2222
}
2323

24-
// Only run "Find Visual Studio" tests on Windows.
25-
if (process.platform !== 'win32') {
26-
return
27-
}
24+
const shouldSkip = process.platform !== 'win32'
2825

2926
describe('find-visualstudio', function () {
27+
if (shouldSkip) {
28+
return
29+
}
30+
3031
this.beforeAll(function () {
3132
// Condition to skip the test suite
3233
if (process.env.SystemRoot === undefined) {

0 commit comments

Comments
 (0)