1
0
forked from Cutlery/immich

update specs

This commit is contained in:
Jonathan Jogenfors 2024-03-20 07:40:48 +01:00
parent bedb494bf1
commit b288743707
2 changed files with 38 additions and 3 deletions

View File

@ -4597,6 +4597,41 @@
] ]
} }
}, },
"/search/cities": {
"get": {
"operationId": "getAssetsByCity",
"parameters": [],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/AssetResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Search"
]
}
},
"/search/explore": { "/search/explore": {
"get": { "get": {
"operationId": "getExploreData", "operationId": "getExploreData",

View File

@ -287,7 +287,7 @@ describe(LibraryService.name, () => {
await sut.handleOfflineCheck(mockAssetJob); await sut.handleOfflineCheck(mockAssetJob);
expect(assetMock.save).toHaveBeenCalledWith({ id: assetStub.external.id, isOffline: true }); expect(assetMock.update).toHaveBeenCalledWith({ id: assetStub.external.id, isOffline: true });
}); });
it('should skip an offline asset', async () => { it('should skip an offline asset', async () => {
@ -302,7 +302,7 @@ describe(LibraryService.name, () => {
const response = await sut.handleOfflineCheck(mockAssetJob); const response = await sut.handleOfflineCheck(mockAssetJob);
expect(response).toBe(JobStatus.SKIPPED); expect(response).toBe(JobStatus.SKIPPED);
expect(assetMock.save).not.toHaveBeenCalled(); expect(assetMock.update).not.toHaveBeenCalled();
}); });
it('should skip a nonexistent asset id', async () => { it('should skip a nonexistent asset id', async () => {
@ -317,7 +317,7 @@ describe(LibraryService.name, () => {
const response = await sut.handleOfflineCheck(mockAssetJob); const response = await sut.handleOfflineCheck(mockAssetJob);
expect(response).toBe(JobStatus.SKIPPED); expect(response).toBe(JobStatus.SKIPPED);
expect(assetMock.save).not.toHaveBeenCalled(); expect(assetMock.update).not.toHaveBeenCalled();
}); });
}); });