You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/amazonq/lsp/util/FileUriUtilTest.kt
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,12 @@ class FileUriUtilTest : BasePlatformTestCase() {
19
19
every { this@mockk.isDirectory } returns isDirectory
20
20
}
21
21
22
-
privatefunnormalizeFileUri(uri:String): String {
22
+
privatefunnormalizeFileUri(uri:String): String {
23
23
if (!System.getProperty("os.name").lowercase().contains("windows")) {
24
24
return uri
25
25
}
26
26
27
-
if(!uri.startsWith("file:///")) {
27
+
if (!uri.startsWith("file:///")) {
28
28
return uri
29
29
}
30
30
@@ -36,7 +36,7 @@ class FileUriUtilTest : BasePlatformTestCase() {
36
36
fun`test basic unix path`() {
37
37
val virtualFile = createMockVirtualFile("/path/to/file.txt")
38
38
val uri =FileUriUtil.toUriString(virtualFile)
39
-
val expected =normalizeFileUri("file:///path/to/file.txt")
39
+
val expected = normalizeFileUri("file:///path/to/file.txt")
40
40
assertEquals(expected, uri)
41
41
}
42
42
@@ -61,7 +61,7 @@ class FileUriUtilTest : BasePlatformTestCase() {
0 commit comments