Skip to content

Commit

Permalink
Update amber_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
gaby authored Feb 11, 2024
1 parent 8520c17 commit 82c500a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amber/amber_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func Benchmark_Amber(b *testing.B) {
expectExtended := `<!DOCTYPE html><html><head><title>Main</title></head><body><h2>Header</h2><h1>Hello, Admin!</h1><h2>Footer</h2></body></html>`
engine := New("./views", ".amber")
engine.AddFunc("isAdmin", func(user string) bool {
return user == "admin"
return user == admin
})
require.NoError(b, engine.Load())

Expand Down

0 comments on commit 82c500a

Please sign in to comment.