Skip to content

Commit e5237df

Browse files
author
Bart Koelman
committed
Fix broken test after rebase
1 parent 4d4e5d7 commit e5237df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/JsonApiDotNetCoreExampleTests/IntegrationTests/AtomicOperations/QueryStrings/AtomicQueryStringTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public async Task Cannot_use_sparse_fieldset_on_operations_endpoint()
247247
}
248248
};
249249

250-
var route = "/api/v1/operations?fields=id";
250+
var route = "/api/v1/operations?fields[recordCompanies]=id";
251251

252252
// Act
253253
var (httpResponse, responseDocument) = await _testContext.ExecutePostAtomicAsync<ErrorDocument>(route, requestBody);
@@ -258,8 +258,8 @@ public async Task Cannot_use_sparse_fieldset_on_operations_endpoint()
258258
responseDocument.Errors.Should().HaveCount(1);
259259
responseDocument.Errors[0].StatusCode.Should().Be(HttpStatusCode.BadRequest);
260260
responseDocument.Errors[0].Title.Should().Be("Usage of one or more query string parameters is not allowed at the requested endpoint.");
261-
responseDocument.Errors[0].Detail.Should().Be("The parameter 'fields' cannot be used at this endpoint.");
262-
responseDocument.Errors[0].Source.Parameter.Should().Be("fields");
261+
responseDocument.Errors[0].Detail.Should().Be("The parameter 'fields[recordCompanies]' cannot be used at this endpoint.");
262+
responseDocument.Errors[0].Source.Parameter.Should().Be("fields[recordCompanies]");
263263
}
264264

265265
[Fact]

0 commit comments

Comments
 (0)