Debian Codegraph @

charts/line_test.go

raw symbols SCIP
1 package charts
2
3 import (
4 "io"
5 "testing"
6
7 "github.com/stretchr/testify/assert"
8 )
9
10 func TestLineAssetsBeforeRender(t *testing.T) {
11 line := NewLine()
12 assert.Equal(t, []string{"echarts.min.js"}, line.JSAssets.Values)
13 }
14
15 func TestLineAssetsAfterRender(t *testing.T) {
16 line := NewLine()
17 err := line.Render(io.Discard)
18 assert.NoError(t, err)
19 assert.Equal(t, []string{host + "echarts.min.js"}, line.JSAssets.Values)
20 }