Page MenuHomeSealhub

account-creation-details.subtest.ts
No OneTemporary

Authored By
Unknown
Size
760 B
Referenced Files
None
Subscribers
None

account-creation-details.subtest.ts

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

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)

Event Timeline