Make testing for moderator state centralized in User class
This commit is contained in:
@@ -9,6 +9,8 @@ export const createUser = (name: string, color: number, createdAt: Date): User =
|
||||
nameChangedAt: createdAt,
|
||||
previousNames: [],
|
||||
scopes: [],
|
||||
|
||||
isModerator: () => false,
|
||||
});
|
||||
|
||||
export const spidermanUser = createUser('Spiderman', 1, new Date(2020, 1, 2));
|
||||
|
||||
Reference in New Issue
Block a user