fix(web): new album title fix (#5467)

* new album title fix

* Naming

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
waclaw66
2023-12-04 17:22:31 +01:00
committed by GitHub
parent 1a63d3837e
commit 1dc832d392
7 changed files with 12 additions and 13 deletions
@@ -30,7 +30,7 @@ describe('Albums BLoC', () => {
});
it('loads albums from the server', async () => {
// TODO: this method currently deletes albums with no assets and albumName === 'Untitled' which might not be the best approach
// TODO: this method currently deletes albums with no assets and albumName === '' which might not be the best approach
const loadedAlbums = [..._albums, albumFactory.build({ id: 'new_loaded_uuid' })];
apiMock.albumApi.getAllAlbums.mockResolvedValueOnce({
@@ -63,9 +63,8 @@ describe('Albums BLoC', () => {
});
it('creates a new album', async () => {
// TODO: we probably shouldn't hardcode the album name "untitled" here and let the user input the album name before creating it
const payload: CreateAlbumDto = {
albumName: 'Untitled',
albumName: '',
};
const returnedAlbum = albumFactory.build();