mirror of
https://github.com/zebrajr/immich.git
synced 2025-12-06 00:20:20 +01:00
fix: failing ci checks (#17810)
This commit is contained in:
parent
b7a0cf2470
commit
1b5e981a45
BIN
mobile/openapi/lib/model/o_auth_callback_dto.dart
generated
BIN
mobile/openapi/lib/model/o_auth_callback_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/o_auth_config_dto.dart
generated
BIN
mobile/openapi/lib/model/o_auth_config_dto.dart
generated
Binary file not shown.
|
|
@ -687,17 +687,17 @@ export type TestEmailResponseDto = {
|
|||
messageId: string;
|
||||
};
|
||||
export type OAuthConfigDto = {
|
||||
codeChallenge?: string;
|
||||
redirectUri: string;
|
||||
state?: string;
|
||||
codeChallenge?: string;
|
||||
};
|
||||
export type OAuthAuthorizeResponseDto = {
|
||||
url: string;
|
||||
};
|
||||
export type OAuthCallbackDto = {
|
||||
url: string;
|
||||
state?: string;
|
||||
codeVerifier?: string;
|
||||
state?: string;
|
||||
url: string;
|
||||
};
|
||||
export type PartnerResponseDto = {
|
||||
avatarColor: UserAvatarColor;
|
||||
|
|
|
|||
1945
server/package-lock.json
generated
1945
server/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
|
@ -772,9 +772,13 @@ describe(AuthService.name, () => {
|
|||
mocks.user.update.mockResolvedValue(user);
|
||||
mocks.session.create.mockResolvedValue(factory.session());
|
||||
|
||||
await expect(sut.callback({ url: 'http://immich/auth/login?code=abc123' }, loginDetails)).resolves.toEqual(
|
||||
oauthResponse(user),
|
||||
);
|
||||
await expect(
|
||||
sut.callback(
|
||||
{ url: 'http://immich/auth/login?code=abc123', state: 'xyz789', codeVerifier: 'foo' },
|
||||
{},
|
||||
loginDetails,
|
||||
),
|
||||
).resolves.toEqual(oauthResponse(user));
|
||||
|
||||
expect(mocks.user.update).toHaveBeenCalledWith(user.id, {
|
||||
profileImagePath: `upload/profile/${user.id}/${fileId}.jpg`,
|
||||
|
|
@ -796,9 +800,13 @@ describe(AuthService.name, () => {
|
|||
mocks.user.update.mockResolvedValue(user);
|
||||
mocks.session.create.mockResolvedValue(factory.session());
|
||||
|
||||
await expect(sut.callback({ url: 'http://immich/auth/login?code=abc123' }, loginDetails)).resolves.toEqual(
|
||||
oauthResponse(user),
|
||||
);
|
||||
await expect(
|
||||
sut.callback(
|
||||
{ url: 'http://immich/auth/login?code=abc123', state: 'xyz789', codeVerifier: 'foo' },
|
||||
{},
|
||||
loginDetails,
|
||||
),
|
||||
).resolves.toEqual(oauthResponse(user));
|
||||
|
||||
expect(mocks.user.update).not.toHaveBeenCalled();
|
||||
expect(mocks.oauth.getProfilePicture).not.toHaveBeenCalled();
|
||||
|
|
|
|||
|
|
@ -20,12 +20,6 @@ export default defineConfig({
|
|||
'src/services/index.ts',
|
||||
'src/sql-tools/from-database/index.ts',
|
||||
],
|
||||
thresholds: {
|
||||
lines: 85,
|
||||
statements: 85,
|
||||
branches: 90,
|
||||
functions: 85,
|
||||
},
|
||||
},
|
||||
server: {
|
||||
deps: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user