Page MenuHomeSealhub

account-creation-details.subtest.ts
No OneTemporary

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(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

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)

Event Timeline