@@ -23,49 +23,6 @@ describe.skip("vscode", () => {
23
23
24
24
const routes = [ "/" , "/vscode" , "/vscode/" ]
25
25
26
- it ( "should load all route variations" , async ( ) => {
27
- codeServer = await integration . setup ( [ "--auth=none" ] , "" )
28
-
29
- for ( const route of routes ) {
30
- const resp = await codeServer . fetch ( route )
31
- expect ( resp . status ) . toBe ( 200 )
32
- const html = await resp . text ( )
33
- const url = new URL ( resp . url ) // Check there were no redirections.
34
- expect ( url . pathname + url . search ) . toBe ( route )
35
-
36
- switch ( route ) {
37
- case "/" :
38
- case "/vscode/" :
39
- expect ( html ) . toMatch ( / s r c = " \. \/ [ a - z ] + - [ 0 - 9 a - z ] + \/ s t a t i c \/ / )
40
- break
41
- case "/vscode" :
42
- expect ( html ) . toMatch ( / s r c = " \. \/ v s c o d e \/ [ a - z ] + - [ 0 - 9 a - z ] + \/ s t a t i c \/ / )
43
- break
44
- }
45
- }
46
- } )
47
-
48
- it ( "should redirect to the passed in workspace using human-readable query" , async ( ) => {
49
- const workspace = path . join ( await tmpdir ( testName ) , "test.code-workspace" )
50
- await fs . writeFile ( workspace , "" )
51
- codeServer = await integration . setup ( [ "--auth=none" , workspace ] , "" )
52
-
53
- const resp = await codeServer . fetch ( "/" )
54
- const url = new URL ( resp . url )
55
- expect ( url . pathname ) . toBe ( "/" )
56
- expect ( url . search ) . toBe ( `?workspace=${ workspace } ` )
57
- } )
58
-
59
- it ( "should redirect to the passed in folder using human-readable query" , async ( ) => {
60
- const folder = await tmpdir ( testName )
61
- codeServer = await integration . setup ( [ "--auth=none" , folder ] , "" )
62
-
63
- const resp = await codeServer . fetch ( "/" )
64
- const url = new URL ( resp . url )
65
- expect ( url . pathname ) . toBe ( "/" )
66
- expect ( url . search ) . toBe ( `?folder=${ folder } ` )
67
- } )
68
-
69
26
it ( "should redirect to last query folder/workspace" , async ( ) => {
70
27
codeServer = await integration . setup ( [ "--auth=none" ] , "" )
71
28
0 commit comments