Skip to content

Commit

Permalink
fix: fix test case TestGraph
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe committed Nov 13, 2024
1 parent ad1318d commit 6e95e1d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/client/graph_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"path/filepath"
"testing"

"github.com/stretchr/testify/assert"
"golang.org/x/mod/module"
"gotest.tools/v3/assert"
pkg "kcl-lang.io/kpm/pkg/package"
"kcl-lang.io/kpm/pkg/utils"
)
Expand Down Expand Up @@ -43,5 +43,7 @@ func testGraph(t *testing.T) {
t.Fatalf("failed to display graph: %v", err)
}

assert.Equal(t, utils.RmNewline(graStr), "[email protected] [email protected]@0.0.1 [email protected]@0.0.1 [email protected]")
assert.Contains(t, utils.RmNewline(graStr), "[email protected] [email protected]")
assert.Contains(t, utils.RmNewline(graStr), "[email protected] [email protected]")
assert.Contains(t, utils.RmNewline(graStr), "[email protected] [email protected]")
}

0 comments on commit 6e95e1d

Please sign in to comment.