0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/packages/integration-tests/tests/session.test.ts

16 lines
517 B
TypeScript
Raw Normal View History

import { registerNewUser, signIn } from '@/helpers';
import { generateUsername, generatePassword } from '@/utils';
describe('username and password flow', () => {
const username = generateUsername();
const password = generatePassword();
it('register with username & password', async () => {
await expect(registerNewUser(username, password)).resolves.not.toThrow();
});
it('sign-in with username & password', async () => {
await expect(signIn(username, password)).resolves.not.toThrow();
});
});