fix(core): update
This commit is contained in:
14
test/test.ts
14
test/test.ts
@ -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()
|
||||
|
Reference in New Issue
Block a user