Skip to content

Commit 72c6ccc

Browse files
authored
Merge pull request XmirrorSecurity#280 from luotianqi777/fix_test
fix: javascript test example
2 parents 9b469d7 + 32a445a commit 72c6ccc

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

test/javascript/javascript_test.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,19 @@ import (
99

1010
func Test_JavaScript(t *testing.T) {
1111

12+
ansi := tool.Dep("strip-ansi", "6.0.1",
13+
tool.Dep("ansi-regex", "5.0.1"),
14+
)
15+
1216
std := tool.Dep("", "",
1317
tool.Dep("js-test", "1.0.1",
1418
tool.Dep("cliui", "6.0.0",
1519
tool.Dep("string-width", "4.2.3",
1620
tool.Dep("emoji-regex", "8.0.0"),
1721
tool.Dep("is-fullwidth-code-point", "3.0.0"),
22+
ansi,
1823
),
19-
tool.Dep("strip-ansi", "6.0.1",
20-
tool.Dep("ansi-regex", "5.0.1"),
21-
),
24+
ansi,
2225
tool.Dep("wrap-ansi", "6.2.0",
2326
tool.Dep("ansi-styles", "4.3.0",
2427
tool.Dep("color-convert", "2.0.1",

0 commit comments

Comments
 (0)