11import { describe , it , expect } from "vitest" ;
22import { countSubstring , parseRemoteAuthority , toSafeHost } from "./util" ;
33
4- it ( "ignore unrelated authorities" , async ( ) => {
4+ it ( "ignore unrelated authorities" , ( ) => {
55 const tests = [
66 "vscode://ssh-remote+some-unrelated-host.com" ,
77 "vscode://ssh-remote+coder-vscode" ,
@@ -15,7 +15,7 @@ it("ignore unrelated authorities", async () => {
1515 }
1616} ) ;
1717
18- it ( "should error on invalid authorities" , async ( ) => {
18+ it ( "should error on invalid authorities" , ( ) => {
1919 const tests = [
2020 "vscode://ssh-remote+coder-vscode--foo" ,
2121 "vscode://ssh-remote+coder-vscode--" ,
@@ -27,7 +27,7 @@ it("should error on invalid authorities", async () => {
2727 }
2828} ) ;
2929
30- it ( "should parse authority" , async ( ) => {
30+ it ( "should parse authority" , ( ) => {
3131 expect (
3232 parseRemoteAuthority ( "vscode://ssh-remote+coder-vscode--foo--bar" ) ,
3333 ) . toStrictEqual ( {
@@ -81,7 +81,7 @@ it("should parse authority", async () => {
8181 } ) ;
8282} ) ;
8383
84- it ( "escapes url host" , async ( ) => {
84+ it ( "escapes url host" , ( ) => {
8585 expect ( toSafeHost ( "https://foobar:8080" ) ) . toBe ( "foobar" ) ;
8686 expect ( toSafeHost ( "https://ほげ" ) ) . toBe ( "xn--18j4d" ) ;
8787 expect ( toSafeHost ( "https://test.😉.invalid" ) ) . toBe ( "test.xn--n28h.invalid" ) ;
0 commit comments