Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Fluid.Tests/FromStatementTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Hello world!
await fromStatement.WriteToAsync(sw, HtmlEncoder.Default, context);

Assert.IsType<FunctionValue>(context.GetValue("hello_world"));
Assert.IsType<NilValue>(context.GetValue("hello"));
Assert.IsType<UndefinedValue>(context.GetValue("hello"));
}

[Fact]
Expand Down
6 changes: 3 additions & 3 deletions Fluid.Tests/MiscFiltersTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ public async Task JsonShouldWriteNullIfDictionaryNotReturnFluidIndexable()
options.MemberAccessStrategy.Register(model.GetType());
var input = FluidValue.Create(model, options);
var result = await MiscFilters.Json(input, new FilterArguments(), new TemplateContext(options));
Assert.Equal("{\"Id\":1,\"WithoutIndexable\":{\"Type\":5,\"Value\":{}},\"Bool\":true}", result.ToStringValue());
Assert.Equal("{\"Id\":1,\"WithoutIndexable\":{\"Type\":6,\"Value\":{}},\"Bool\":true}", result.ToStringValue());
}

[Fact]
Expand Down Expand Up @@ -910,7 +910,7 @@ public async Task HmacSha1(string key, string value, string expected)
{
// Arrange
FluidValue input = value is null
? NilValue.Empty
? EmptyValue.Instance
: new StringValue(value);
var arguments = new FilterArguments(FluidValue.Create(key, TemplateOptions.Default));
var context = new TemplateContext();
Expand All @@ -932,7 +932,7 @@ public async Task HmacSha256(string key, string value, string expected)
{
// Arrange
FluidValue input = value is null
? NilValue.Empty
? EmptyValue.Instance
: new StringValue(value);
var arguments = new FilterArguments(FluidValue.Create(key, TemplateOptions.Default));
var context = new TemplateContext();
Expand Down
Loading