Skip to content

Commit

Permalink
add missing json path
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeutschCoding committed Sep 14, 2023
1 parent 1b29670 commit 6db97f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/NRedisStack.Tests/Json/JsonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -697,9 +697,9 @@ public void Get()
Assert.Equal("Alice", result!.Name);
Assert.Equal(35, result.Age);
var jsonOptions = new JsonSerializerOptions { PropertyNameCaseInsensitive = true };
result = commands.Get<Person>(caseInsensitiveKey, jsonOptions);
result = commands.Get<Person>(caseInsensitiveKey, "$", jsonOptions);
Assert.NotNull(result);
Assert.Equal("Alice", result.Name);
Assert.Equal("Alice", result!.Name);
Assert.Equal(35, result.Age);
var people = commands.GetEnumerable<Person>(complexKey, "$..a").ToArray();
Assert.Equal(2, people.Length);
Expand All @@ -724,9 +724,9 @@ public async Task GetAsync()
Assert.Equal("Alice", result!.Name);
Assert.Equal(35, result.Age);
var jsonOptions = new JsonSerializerOptions { PropertyNameCaseInsensitive = true };
result = await commands.GetAsync<Person>(caseInsensitiveKey, jsonOptions);
result = await commands.GetAsync<Person>(caseInsensitiveKey, "$", jsonOptions);
Assert.NotNull(result);
Assert.Equal("Alice", result.Name);
Assert.Equal("Alice", result!.Name);
Assert.Equal(35, result.Age);
var people = (await commands.GetEnumerableAsync<Person>(complexKey, "$..a")).ToArray();
Assert.Equal(2, people.Length);
Expand Down

0 comments on commit 6db97f9

Please sign in to comment.