Skip to content

Commit

Permalink
fix test for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
xvik committed Sep 26, 2023
1 parent 8126986 commit 290a919
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ class FileUtilsTest extends AbstractTest {
FileUtils.relative(testProjectDir, file('js.js')) == 'js.js'
FileUtils.relative(file('index.html'), file('sub/js.js')) == 'sub/js.js'
FileUtils.relative(file('sub/index.html'), file('js.js')) == '../js.js'
FileUtils.relative(file('sub\\index.html'), file('js.js')) == '../js.js'

if (isWin) {
// on linux it would be single file name
FileUtils.relative(file('sub\\index.html'), file('js.js')) == '../js.js'
}
}

def "Check file read-write"() {
Expand Down

0 comments on commit 290a919

Please sign in to comment.