Skip to content

Commit

Permalink
add ut for alias
Browse files Browse the repository at this point in the history
  • Loading branch information
PayneFuRC committed Jun 12, 2024
1 parent 1c579d1 commit 48e854c
Show file tree
Hide file tree
Showing 7 changed files with 1,452 additions and 24 deletions.
2 changes: 1 addition & 1 deletion pkg/node-modules/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func nodeDepTree(t *testing.T, dir string) {
})
})
g.Expect(r).To(ConsistOf([]string{
"react", "js-tokens", "loose-envify",
"react", "remote", "js-tokens", "loose-envify",
}))
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/node-modules/nodeModuleCollector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func TestReadDependencyTreeByNpm(t *testing.T) {
return lo.Keys(*it)
})
g.Expect(r).To(ConsistOf([]string{
"js-tokens", "react", "loose-envify",
"js-tokens", "react", "remote", "loose-envify",
}))
}

Expand All @@ -54,6 +54,6 @@ func TestReadDependencyTreeByPnpm(t *testing.T) {
return lo.Keys(*it)
})
g.Expect(r).To(ConsistOf([]string{
"js-tokens", "react", "loose-envify",
"js-tokens", "react", "remote", "loose-envify",
}))
}
Loading

0 comments on commit 48e854c

Please sign in to comment.