refactor: user factories instead of stubs (#17540)

This commit is contained in:
Jason Rasmussen 2025-04-11 11:53:37 -04:00 committed by GitHub
parent 52d4b2fe57
commit 584e5894bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 297 additions and 251 deletions

View file

@ -52,24 +52,4 @@ export const authStub = {
key: Buffer.from('shared-link-key'),
} as SharedLinkEntity,
}),
adminSharedLinkNoExif: Object.freeze<AuthDto>({
user: authUser.admin,
sharedLink: {
id: '123',
showExif: false,
allowDownload: true,
allowUpload: true,
key: Buffer.from('shared-link-key'),
} as SharedLinkEntity,
}),
passwordSharedLink: Object.freeze<AuthDto>({
user: authUser.admin,
sharedLink: {
id: '123',
allowUpload: false,
allowDownload: false,
password: 'password-123',
showExif: true,
} as SharedLinkEntity,
}),
};