@@ -36,8 +36,8 @@ test("/health-check returns 200 with OK", async () => {
36
36
expect ( await response . text ( ) ) . toBe ( "OK" ) ;
37
37
} ) ;
38
38
39
- describe ( "/snapshot" , ( ) => {
40
- const snapshotFirstPathComp = "snapshot" as const ;
39
+ describe ( "/melpa/ snapshot" , ( ) => {
40
+ const snapshotLeadingPathComp = "melpa/ snapshot" as const ;
41
41
for ( const [ name , path ] of [
42
42
[ "valid with a one-level subdir" , "2024-01-01/a/b" ] ,
43
43
[ "valid with a one-level subdir with a trailing slash" , "2024-02-02/a/b/" ] ,
@@ -49,7 +49,7 @@ describe("/snapshot", () => {
49
49
] as const ) {
50
50
test ( `Redirect with valid URL under /shapshot: ${ name } ` , async ( ) => {
51
51
const response = await fetch (
52
- `${ hostAddress } /${ snapshotFirstPathComp } /${ path } ` ,
52
+ `${ hostAddress } /${ snapshotLeadingPathComp } /${ path } ` ,
53
53
{
54
54
redirect : "manual" ,
55
55
} ,
@@ -70,9 +70,9 @@ describe("/snapshot", () => {
70
70
[ "without a trailing slash" , "2024-01-01" ] ,
71
71
[ "with a trailing slash" , "2024-02-02/" ] ,
72
72
] as const ) {
73
- test ( `Report OK with valid snapshot version at a root dir of /shapshot: ${ name } ` , async ( ) => {
73
+ test ( `Report OK with valid snapshot version at a root dir of /melpa/ shapshot: ${ name } ` , async ( ) => {
74
74
const response = await fetch (
75
- `${ hostAddress } /${ snapshotFirstPathComp } /${ path } ` ,
75
+ `${ hostAddress } /${ snapshotLeadingPathComp } /${ path } ` ,
76
76
{
77
77
redirect : "manual" ,
78
78
} ,
@@ -101,9 +101,9 @@ describe("/snapshot", () => {
101
101
"non-existing/a/b/" ,
102
102
] ,
103
103
] as const ) {
104
- test ( `Return 404 with invalid URL under /shapshot: ${ name } ` , async ( ) => {
104
+ test ( `Return 404 with invalid URL under /melpa/ shapshot: ${ name } ` , async ( ) => {
105
105
const response = await fetch (
106
- `${ hostAddress } /${ snapshotFirstPathComp } /${ path } ` ,
106
+ `${ hostAddress } /${ snapshotLeadingPathComp } /${ path } ` ,
107
107
{
108
108
redirect : "manual" ,
109
109
} ,
0 commit comments