Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22392948
account-creation-details.subtest.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
760 B
Referenced Files
None
Subscribers
None
account-creation-details.subtest.ts
View Options
import
axios
from
"axios"
;
import
assert
from
"assert"
;
import
{
withRunningApp
}
from
"../../test_utils/with-test-app"
;
import
{
assertThrowsAsync
}
from
"../../test_utils/assert-throws-async"
;
describe
(
"account-creation-details"
,
()
=>
{
it
(
"throws when no token/email is present"
,
()
=>
withRunningApp
(({
base_url
})
=>
assertThrowsAsync
(
async
()
=>
{
await
axios
.
get
(
`
${
base_url
}
/account-creation-details`
);
},
(
_
)
=>
{}
)
));
it
(
"displays an html form after the positive flow"
,
()
=>
withRunningApp
(
async
({
base_url
})
=>
{
const
resp
=
await
axios
.
get
(
`
${
base_url
}
/account-creation-details?token=oieajgoiea&email=ababab@ok.pl`
);
assert
.
deepEqual
(
resp
.
status
,
200
);
assert
(
resp
.
data
.
length
);
}));
});
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Fri, Nov 27, 15:54 (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1229033
Default Alt Text
account-creation-details.subtest.ts (760 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline