Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7860424
account-creation-details.subtest.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
822 B
Referenced Files
None
Subscribers
None
account-creation-details.subtest.js
View Options
const
locreq
=
require
(
"locreq"
)(
__dirname
);
const
axios
=
require
(
"axios"
);
const
assert
=
require
(
"assert"
);
const
{
with_running_app
}
=
locreq
(
"test_utils/with-test-app.js"
);
const
{
assert_throws_async
}
=
require
(
"../../../test_utils"
);
describe
(
"account-creation-details"
,
()
=>
{
it
(
"throws when no token/email is present"
,
()
=>
with_running_app
(({
app
,
base_url
})
=>
assert_throws_async
(
async
()
=>
{
await
axios
.
get
(
`
${
base_url
}
/account-creation-details`
);
},
e
=>
{}
)
));
it
(
"displays an html form after the positive flow"
,
()
=>
with_running_app
(
async
({
app
,
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/plain
Expires
Wed, Aug 13, 18:01 (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
874342
Default Alt Text
account-creation-details.subtest.js (822 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment