(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func Test_JavaScript(t *testing.T) { |
| 11 | |
| 12 | ansi := tool.Dep("strip-ansi", "6.0.1", |
| 13 | tool.Dep("ansi-regex", "5.0.1"), |
| 14 | ) |
| 15 | |
| 16 | std := tool.Dep("", "", |
| 17 | tool.Dep("js-test", "1.0.1", |
| 18 | tool.Dep("cliui", "6.0.0", |
| 19 | tool.Dep("string-width", "4.2.3", |
| 20 | tool.Dep("emoji-regex", "8.0.0"), |
| 21 | tool.Dep("is-fullwidth-code-point", "3.0.0"), |
| 22 | ansi, |
| 23 | ), |
| 24 | ansi, |
| 25 | tool.Dep("wrap-ansi", "6.2.0", |
| 26 | tool.Dep("ansi-styles", "4.3.0", |
| 27 | tool.Dep("color-convert", "2.0.1", |
| 28 | tool.Dep("color-name", "1.1.4"), |
| 29 | ), |
| 30 | ), |
| 31 | ), |
| 32 | ), |
| 33 | ), |
| 34 | ) |
| 35 | |
| 36 | tool.RunTaskCase(t, javascript.Sca{})([]tool.TaskCase{ |
| 37 | // package.lock |
| 38 | {Path: "1", Result: std}, |
| 39 | // package.lock v3 |
| 40 | {Path: "2", Result: std}, |
| 41 | // yarn.lock |
| 42 | {Path: "3", Result: std}, |
| 43 | // node_modules |
| 44 | {Path: "4", Result: std}, |
| 45 | // simple |
| 46 | {Path: "5", Result: std}, |
| 47 | }) |
| 48 | } |
nothing calls this directly
no test coverage detected