Skip to content

Commit

Permalink
Update Tests/VTEX.Tests/Controllers/ProductSpecificationControllerTes…
Browse files Browse the repository at this point in the history
…ts.cs
  • Loading branch information
gitauto-ai[bot] authored Dec 11, 2024
1 parent 8b94b0a commit 2f74e7d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public async Task GetSpecifications_ReturnsOkResult()
// Arrange
int productId = 1;

Check warning

Code scanning / Sonarcsharp (reported by Codacy)

Add the 'const' modifier to 'productId'. Warning test

Add the 'const' modifier to 'productId'.

_context.GetProductSpecificationsAsync(productId, Arg.Any<CancellationToken>()).Returns(new List<Specification>());
// Act
var result = await _controller.GetSpecifications(productId, CancellationToken.None);

Expand Down

0 comments on commit 2f74e7d

Please sign in to comment.