mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
`should return if minimum supported PostgreSQL and vectors version are installed`:
Check if init returns properly and that getPostgresVersion is called twice
`should thrown an error if PostgreSQL version is below minimum supported version`:
Checks if the init function correctly returns an error
`should suggest image with postgres ${major} if database is ${major}`:
Modified to set MockResolvedValue instead of MockResolvedValueOnce. With the new check we get the PostgreSQL version twice. So it needs to be set during the entire test.
`should not suggest image if postgres version is not in 14, 15 or 16`:
Modified the bounds to [14, 18]. Because values below 14 now will not get called.
Also Modified to call `getPostgresVersion.MockResolvedValueOnce` for twice, because it gets called twice.
|
||
|---|---|---|
| .. | ||
| bin | ||
| openapi-generator | ||
| resources | ||
| src | ||
| test | ||
| .eslintrc.js | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc | ||
| Dockerfile | ||
| immich-openapi-specs.json | ||
| nest-cli.json | ||
| openapitools.json | ||
| package-lock.json | ||
| package.json | ||
| start-microservices.sh | ||
| start-server.sh | ||
| start.sh | ||
| tsconfig.build.json | ||
| tsconfig.json | ||