Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F3010136
add-route.test.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
590 B
Referenced Files
None
Subscribers
None
add-route.test.ts
View Options
import
{
RealAppTest
}
from
"./test_utils/test-on-real-app.js"
;
describe
(
"add route test"
,
()
=>
{
it
(
"creates minimal sealious app and adds a simple route that works"
,
async
function
()
{
const
test_app
=
await
RealAppTest
.
init
();
const
path
=
"/sample"
;
await
test_app
.
runSealgenCommand
(
`add-route --url=
${
path
}
--action=Sample --mode=page`
);
await
test_app
.
start
();
const
res
=
await
test_app
.
httpGET
(
path
);
if
(
res
.
status
!=
200
)
{
throw
new
Error
(
"url generated by add-route exists but doesn't return 200"
);
}
await
test_app
.
close
();
}).
timeout
(
100
*
1000
);
});
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Wed, May 7, 19:37 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
624713
Default Alt Text
add-route.test.ts (590 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline
Log In to Comment