|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP |
2 | 2 |
|
3 | | -exports[`errors 1`] = `Array []`; |
| 3 | +exports[`"options.extractComments" is "boolean" - "true": errors 1`] = `Array []`; |
4 | 4 |
|
5 | | -exports[`errors 2`] = `Array []`; |
| 5 | +exports[`"options.extractComments" is "boolean" - "true": test.js 1`] = `"var foo=1;"`; |
6 | 6 |
|
7 | | -exports[`errors 3`] = `Array []`; |
8 | | - |
9 | | -exports[`errors 4`] = `Array []`; |
10 | | - |
11 | | -exports[`errors 5`] = `Array []`; |
12 | | - |
13 | | -exports[`nested/nested/test1.js 1`] = ` |
| 7 | +exports[`"options.extractComments" is "boolean" - "true": test1.js 1`] = ` |
14 | 8 | "/*! For license information please see test1.js.LICENSE */ |
15 | 9 | var foo=1;" |
16 | 10 | `; |
17 | 11 |
|
18 | | -exports[`nested/nested/test1.js.LICENSE 1`] = ` |
19 | | -"/* Comment */ |
| 12 | +exports[`"options.extractComments" is "boolean" - "true": test1.js.LICENSE 1`] = ` |
| 13 | +"/*! Legal Comment */ |
20 | 14 | " |
21 | 15 | `; |
22 | 16 |
|
23 | | -exports[`nested/test.js 1`] = ` |
| 17 | +exports[`"options.extractComments" is "boolean" - "true": warnings 1`] = `Array []`; |
| 18 | + |
| 19 | +exports[`"options.extractComments" is "function": errors 1`] = `Array []`; |
| 20 | + |
| 21 | +exports[`"options.extractComments" is "function": test.js 1`] = ` |
24 | 22 | "/*! For license information please see test.js.LICENSE */ |
25 | 23 | var foo=1;" |
26 | 24 | `; |
27 | 25 |
|
28 | | -exports[`nested/test1.js.LICENSE 1`] = ` |
| 26 | +exports[`"options.extractComments" is "function": test.js.LICENSE 1`] = ` |
29 | 27 | "// Comment |
30 | 28 | " |
31 | 29 | `; |
32 | 30 |
|
33 | | -exports[`test.js 1`] = `"var foo=1;"`; |
34 | | - |
35 | | -exports[`test.js 2`] = `"var foo=1;"`; |
36 | | - |
37 | | -exports[`test.js 3`] = ` |
38 | | -"/*! For license information please see test.js.LICENSE */ |
| 31 | +exports[`"options.extractComments" is "function": test1.js 1`] = ` |
| 32 | +"/*! For license information please see test1.js.LICENSE */ |
39 | 33 | var foo=1;" |
40 | 34 | `; |
41 | 35 |
|
42 | | -exports[`test.js 4`] = ` |
43 | | -"/*! For license information please see test.js.LICENSE */ |
44 | | -var foo=1;" |
| 36 | +exports[`"options.extractComments" is "function": test1.js.LICENSE 1`] = ` |
| 37 | +"/* Comment */ |
| 38 | +" |
45 | 39 | `; |
46 | 40 |
|
47 | | -exports[`test.js 5`] = ` |
48 | | -"/*! For license information please see test1.js.LICENSE */ |
49 | | -var foo=1;" |
50 | | -`; |
| 41 | +exports[`"options.extractComments" is "function": warnings 1`] = `Array []`; |
| 42 | + |
| 43 | +exports[`"options.extractComments" is "object": errors 1`] = `Array []`; |
51 | 44 |
|
52 | | -exports[`test.js 6`] = ` |
| 45 | +exports[`"options.extractComments" is "object": test.js 1`] = ` |
53 | 46 | "/*! License information can be found in test.license.js */ |
54 | 47 | var foo=1;" |
55 | 48 | `; |
56 | 49 |
|
57 | | -exports[`test.js.LICENSE 1`] = ` |
| 50 | +exports[`"options.extractComments" is "object": test.license.js 1`] = ` |
58 | 51 | "// Comment |
59 | 52 | " |
60 | 53 | `; |
61 | 54 |
|
62 | | -exports[`test.js.LICENSE 2`] = ` |
63 | | -"// Comment |
64 | | -" |
| 55 | +exports[`"options.extractComments" is "object": warnings 1`] = `Array []`; |
| 56 | + |
| 57 | +exports[`"options.extractComments" is "regex": errors 1`] = `Array []`; |
| 58 | + |
| 59 | +exports[`"options.extractComments" is "regex": test.js 1`] = `"var foo=1;"`; |
| 60 | + |
| 61 | +exports[`"options.extractComments" is "regex": test1.js 1`] = ` |
| 62 | +"/*! For license information please see test1.js.LICENSE */ |
| 63 | +var foo=1;" |
65 | 64 | `; |
66 | 65 |
|
67 | | -exports[`test.license.js 1`] = ` |
68 | | -"// Comment |
| 66 | +exports[`"options.extractComments" is "regex": test1.js.LICENSE 1`] = ` |
| 67 | +"// foo |
69 | 68 | " |
70 | 69 | `; |
71 | 70 |
|
72 | | -exports[`test1.js 1`] = `"var foo=1;"`; |
| 71 | +exports[`"options.extractComments" is "regex": warnings 1`] = `Array []`; |
73 | 72 |
|
74 | | -exports[`test1.js 2`] = ` |
| 73 | +exports[`"options.extractComments" is "string" - "all" and license file should be relative source file: errors 1`] = `Array []`; |
| 74 | + |
| 75 | +exports[`"options.extractComments" is "string" - "all" and license file should be relative source file: nested/nested/test1.js 1`] = ` |
75 | 76 | "/*! For license information please see test1.js.LICENSE */ |
76 | 77 | var foo=1;" |
77 | 78 | `; |
78 | 79 |
|
79 | | -exports[`test1.js 3`] = ` |
80 | | -"/*! For license information please see test1.js.LICENSE */ |
| 80 | +exports[`"options.extractComments" is "string" - "all" and license file should be relative source file: nested/nested/test1.js.LICENSE 1`] = ` |
| 81 | +"/* Comment */ |
| 82 | +" |
| 83 | +`; |
| 84 | + |
| 85 | +exports[`"options.extractComments" is "string" - "all" and license file should be relative source file: nested/test.js 1`] = ` |
| 86 | +"/*! For license information please see test.js.LICENSE */ |
81 | 87 | var foo=1;" |
82 | 88 | `; |
83 | 89 |
|
84 | | -exports[`test1.js.LICENSE 1`] = ` |
85 | | -"// foo |
| 90 | +exports[`"options.extractComments" is "string" - "all" and license file should be relative source file: nested/test.js.LICENSE 1`] = ` |
| 91 | +"// Comment |
86 | 92 | " |
87 | 93 | `; |
88 | 94 |
|
89 | | -exports[`test1.js.LICENSE 2`] = ` |
90 | | -"/* Comment */ |
| 95 | +exports[`"options.extractComments" is "string" - "all" and license file should be relative source file: warnings 1`] = `Array []`; |
| 96 | + |
| 97 | +exports[`"options.extractComments" is "string": errors 1`] = `Array []`; |
| 98 | + |
| 99 | +exports[`"options.extractComments" is "string": test.js 1`] = ` |
| 100 | +"/*! For license information please see test.js.LICENSE */ |
| 101 | +var foo=1;" |
| 102 | +`; |
| 103 | + |
| 104 | +exports[`"options.extractComments" is "string": test.js.LICENSE 1`] = ` |
| 105 | +"// Comment |
91 | 106 | " |
92 | 107 | `; |
93 | 108 |
|
94 | | -exports[`test1.js.LICENSE 3`] = ` |
| 109 | +exports[`"options.extractComments" is "string": test1.js 1`] = ` |
| 110 | +"/*! For license information please see test1.js.LICENSE */ |
| 111 | +var foo=1;" |
| 112 | +`; |
| 113 | + |
| 114 | +exports[`"options.extractComments" is "string": test1.js.LICENSE 1`] = ` |
95 | 115 | "/* Comment */ |
96 | 116 | " |
97 | 117 | `; |
98 | 118 |
|
99 | | -exports[`warnings 1`] = `Array []`; |
| 119 | +exports[`"options.extractComments" is "string": warnings 1`] = `Array []`; |
100 | 120 |
|
101 | | -exports[`warnings 2`] = `Array []`; |
| 121 | +exports[`"options.extractComments" is not specify: errors 1`] = `Array []`; |
102 | 122 |
|
103 | | -exports[`warnings 3`] = `Array []`; |
| 123 | +exports[`"options.extractComments" is not specify: test.js 1`] = `"var foo=1;"`; |
104 | 124 |
|
105 | | -exports[`warnings 4`] = `Array []`; |
| 125 | +exports[`"options.extractComments" is not specify: test1.js 1`] = ` |
| 126 | +"/*! Legal Comment */ |
| 127 | +var foo=1;" |
| 128 | +`; |
106 | 129 |
|
107 | | -exports[`warnings 5`] = `Array []`; |
| 130 | +exports[`"options.extractComments" is not specify: warnings 1`] = `Array []`; |
0 commit comments