Skip to content

Commit

Permalink
🛠🧪 Fixed test that was failing because ImportCsvData mock did not ret…
Browse files Browse the repository at this point in the history
…urn a Task
  • Loading branch information
ChuufMaster committed Oct 18, 2024
1 parent 0f29821 commit f9ee6aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public async Task ImportData_ShouldReturnOk()
var stream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(fileContent));
var formFile = new FormFile(stream, 0, stream.Length, "file", fileName);

_mockCsvImporter.Setup(m => m.ImportCsvData(It.IsAny<string>(), It.IsAny<string>()));
_mockCsvImporter.Setup(m => m.ImportCsvData(It.IsAny<string>(), It.IsAny<string>())).Returns(Task.Delay(100));

// Act
var result = await _controller.ImportData(formFile, "TestProvince");
Expand Down

0 comments on commit f9ee6aa

Please sign in to comment.