Debian Codegraph @

charts/heatmap_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 TestHeatMapAssetsBeforeRender(t *testing.T) {
11 heatMap := NewHeatMap()
12 assert.Equal(t, []string{"echarts.min.js"}, heatMap.JSAssets.Values)
13 }
14
15 func TestHeatMapAssetsAfterRender(t *testing.T) {
16 heatMap := NewHeatMap()
17 err := heatMap.Render(io.Discard)
18 assert.NoError(t, err)
19 assert.Equal(t, []string{host + "echarts.min.js"}, heatMap.JSAssets.Values)
20 }