fix(core): update

This commit is contained in:
2024-05-02 14:07:42 +02:00
parent c91d056367
commit 602196197a
4 changed files with 51 additions and 19 deletions

View File

@ -16,13 +16,23 @@ tap.test('first test', async () => {
});
tap.test('should list own user', async () => {
await testZitadel.listOwnUser();
const user = await testZitadel.listOwnUser();
console.log(user);
})
tap.test('should list users', async () => {
const users = await testZitadel.listUsers();
expect(users).toBeArray();
expect(users[0]).toBeInstanceOf(zitadel.ZitaldelUser);
console.log(users);
})
tap.start()
tap.test('should invite user', async () => {
await testZitadel.createUser({
email: await testQenv.getEnvVarOnDemand('ZITADEL_TEST_EMAIL'),
firstName: 'firstname',
lastName: 'lastname',
})
})
export default tap.start()