Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7317226
account-creation-details.subtest.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
772 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
(
null
,
({
base_url
})
=>
assertThrowsAsync
(
async
()
=>
{
await
axios
.
get
(
`
${
base_url
}
/account-creation-details`
);
},
(
_
)
=>
{}
)
));
it
(
"displays an html form after the positive flow"
,
()
=>
withRunningApp
(
null
,
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
text/x-java
Expires
Sun, Jul 13, 04:29 (19 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
802331
Default Alt Text
account-creation-details.subtest.ts (772 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment