Skip to content

Commit 96f0918

Browse files
committed
fix: Update AddAlbumElement unit test
- change test image file path
1 parent 12f4c50 commit 96f0918

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

tests/CoinyProject.Application.AlbumService.Tests/Controllers/AlbumControllerUnitTests.cs

-12
This file was deleted.

tests/CoinyProject.Application.AlbumService.Tests/Servcices/AlbumServiceUnitTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public async Task AddAlbumElement_ReturnsNoErrors_IfAddingAlbumIsCorrect()
109109
{
110110
var image = await GetTestImage();
111111
_fixture.Customize<IFormFile>(c => c.FromFactory(() =>
112-
new FormFile(image, 0, image.Length, "file", "test.jpg")
112+
new FormFile(image, 0, image.Length, "file", "..\\..\\..\\Shared")
113113
));
114114
_fixture.Behaviors.OfType<ThrowingRecursionBehavior>().ToList()
115115
.ForEach(b => _fixture.Behaviors.Remove(b));
Binary file not shown.

0 commit comments

Comments
 (0)