Skip to content

Commit

Permalink
feat: fix map initializing and doc config
Browse files Browse the repository at this point in the history
  • Loading branch information
katerina20 committed Sep 5, 2023
1 parent 5661e47 commit ab9483f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ public void testUploadScreenshot(String fileName, String sourceFilePath, Long so

when(directory.getId()).thenReturn(directoryId);
when(directory.getPath()).thenReturn(directoryPath);
when(projectFull.getDirectories()).thenReturn(nonNull(directoryId) ? Map.of(directoryId, directory) : new HashMap<>());

Map<Long, Directory> directories = new HashMap<>();
directories.put(directoryId, directory);
when(projectFull.getDirectories()).thenReturn(nonNull(directoryId) ? directories : new HashMap<>());

when(projectClient.uploadStorage(eq(fileName), any())).thenReturn(1L);
when(client.listScreenshots(null)).thenReturn(new ArrayList<>());
Expand Down
15 changes: 15 additions & 0 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,21 @@ const sidebars = {
'commands/crowdin-distribution-release',
]
},
{
type: 'category',
label: 'crowdin screenshot',
link: {
type: 'doc',
id: 'commands/crowdin-screenshot'
},
collapsible: true,
collapsed: true,
items: [
'commands/crowdin-screenshot-upload',
'commands/crowdin-screenshot-list',
'commands/crowdin-screenshot-delete',
]
},
'commands/crowdin-pre-translate',
],
},
Expand Down

0 comments on commit ab9483f

Please sign in to comment.