test fixes

This commit is contained in:
Will Charczuk 2016-07-17 14:32:27 -07:00
parent cea31c6c23
commit eb61fbfd0f
2 changed files with 2 additions and 1 deletions

View file

@ -178,6 +178,7 @@ func (c Chart) getRanges() (xrange, yrange, yrangeAlt Range) {
} else if seriesAxis == YAxisSecondary {
minya = math.Min(minya, vy)
maxya = math.Max(maxya, vy)
hasSecondaryAxis = true
}
}
}

View file

@ -11,7 +11,7 @@ func TestTimeValueFormatterWithFormat(t *testing.T) {
assert := assert.New(t)
d := time.Now()
di := d.Unix()
di := TimeToFloat64(d)
df := float64(di)
s := TimeValueFormatterWithFormat(d, DefaultDateFormat)