test: add test for echart

This commit is contained in:
vicanso 2022-02-17 22:53:12 +08:00
parent 519c8a492e
commit c15fec21ad
10 changed files with 1516 additions and 47 deletions

View file

@ -23,7 +23,6 @@
package charts
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
@ -179,7 +178,6 @@ func TestLegendRender(t *testing.T) {
assert.Nil(err)
assert.Equal(tt.box, b)
data, err := d.Bytes()
fmt.Println(string(data))
assert.Nil(err)
assert.NotEmpty(data)
assert.Equal(tt.result, string(data))