mirror of
https://github.com/wassname/talk.git
synced 2026-08-09 12:30:42 +08:00
Restore the userCreated event
This commit is contained in:
@@ -16,8 +16,10 @@ describe('graph.mutations.editComment', () => {
|
||||
beforeEach(async () => {
|
||||
timekeeper.reset();
|
||||
await SettingsService.init();
|
||||
const ctx = Context.forSystem();
|
||||
asset = await AssetModel.create({});
|
||||
user = await UsersService.createLocalUser(
|
||||
ctx,
|
||||
'usernameA@example.com',
|
||||
'password',
|
||||
'usernameA'
|
||||
@@ -124,7 +126,9 @@ describe('graph.mutations.editComment', () => {
|
||||
body: `hello there! ${String(Math.random()).slice(2)}`,
|
||||
});
|
||||
|
||||
const ctx = Context.forSystem();
|
||||
const userB = await UsersService.createLocalUser(
|
||||
ctx,
|
||||
'usernameB@example.com',
|
||||
'password',
|
||||
'usernameB'
|
||||
|
||||
Reference in New Issue
Block a user