Commit cf09e344 authored by Sam Leavens's avatar Sam Leavens

fix(pkg/chartutil): Fix test, improve message

Fix inverted equaility check and update error message.
parent 3ee70291
......@@ -447,8 +447,8 @@ chapter:
if _, err := d.PathValue("chapter.doesntexist.one"); err == nil {
t.Errorf("Non-existent key in middle of path should return error: %s\n%v", err, d)
}
if _, err := d.PathValue(""); err != nil {
t.Errorf("Empty path should return error: \n%v", d)
if _, err := d.PathValue(""); err == nil {
t.Error("Asking for the value from an empty path should yield an error")
}
if v, err := d.PathValue("title"); err == nil {
if v != "Moby Dick" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment