fix(backend): enumerate achievement types in some response schema (#15953)
* fix(backend): enumerate achievement types in some response schema * refactor: use `ref`
This commit is contained in:
parent
09317150e1
commit
3b676f39df
12 changed files with 138 additions and 121 deletions
|
|
@ -232,7 +232,7 @@ describe('UserEntityService', () => {
|
|||
});
|
||||
|
||||
test('MeDetailed', async() => {
|
||||
const achievements = [{ name: 'achievement', unlockedAt: new Date().getTime() }];
|
||||
const achievements = [{ name: 'iLoveMisskey' as const, unlockedAt: new Date().getTime() }];
|
||||
const me = await createUser({}, {
|
||||
birthday: '2000-01-01',
|
||||
achievements: achievements,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue