Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 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
4 changes: 2 additions & 2 deletions Fluid.Tests/MiscFiltersTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,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 @@ -945,7 +945,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