mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 08:09:52 +08:00
chore(server): data mocking and seeding (#10864)
This commit is contained in:
@@ -25,7 +25,7 @@ test.after.always(async () => {
|
||||
test.skip('should register a user', () => {});
|
||||
|
||||
test('should get current user', async t => {
|
||||
const user = await app.signup('u1@affine.pro');
|
||||
const user = await app.signupV1('u1@affine.pro');
|
||||
const currUser = await currentUser(app);
|
||||
t.is(currUser.id, user.id, 'user.id is not valid');
|
||||
t.is(currUser.name, user.name, 'user.name is not valid');
|
||||
@@ -34,7 +34,7 @@ test('should get current user', async t => {
|
||||
});
|
||||
|
||||
test('should be able to delete user', async t => {
|
||||
await app.signup('u1@affine.pro');
|
||||
await app.signupV1('u1@affine.pro');
|
||||
const deleted = await deleteAccount(app);
|
||||
t.true(deleted);
|
||||
const currUser = await currentUser(app);
|
||||
|
||||
Reference in New Issue
Block a user