Skip to content

Commit

Permalink
[fix] tests
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Mar 25, 2023
1 parent d43da2f commit 8f7e1b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions widgets/chart/process_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func TestProcessData(t *testing.T) {
defer test.Clean()

prepare(t)
clear(t)
testData(t)

args := []interface{}{"dashboard", map[string]interface{}{"range": "2022-01-02", "status": "checked"}}
Expand All @@ -35,6 +36,7 @@ func TestProcessComponent(t *testing.T) {
defer test.Clean()

prepare(t)
clear(t)
testData(t)

args := []interface{}{
Expand Down Expand Up @@ -63,6 +65,7 @@ func TestProcessComponentError(t *testing.T) {
defer test.Clean()

prepare(t)
clear(t)
testData(t)

args := []interface{}{
Expand All @@ -80,6 +83,7 @@ func TestProcessSetting(t *testing.T) {
defer test.Clean()

prepare(t)
clear(t)
testData(t)

args := []interface{}{"dashboard"}
Expand All @@ -97,6 +101,7 @@ func TestProcessXgen(t *testing.T) {
defer test.Clean()

prepare(t)
clear(t)
testData(t)

args := []interface{}{"dashboard"}
Expand All @@ -114,6 +119,7 @@ func TestProcessXgenWithPermissions(t *testing.T) {
defer test.Clean()

prepare(t)
clear(t)
testData(t)

session.Global().Set("__permissions", map[string]interface{}{
Expand Down

0 comments on commit 8f7e1b3

Please sign in to comment.