-
Notifications
You must be signed in to change notification settings - Fork 22
/
test.js
470 lines (464 loc) · 14.8 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
var test = require('tape')
var parse = require('spdx-expression-parse')
var correct = require('./')
function valid (string) {
try {
parse(string)
return true
} catch (e) {
return false
}
}
/* eslint-disable max-len */
var examples = {
'(MIT OR Apache-2.0)': '(MIT OR Apache-2.0)',
' Apache License V2': 'Apache-2.0',
' BSD-3-Clause': 'BSD-3-Clause',
' GPL-3.0+': 'GPL-3.0-or-later',
'"BD-2-Clause"': 'BSD-2-Clause',
'"BSD-2-Clause"': 'BSD-2-Clause',
'"MIT"': 'MIT',
'(LGPL)': 'LGPL-3.0-or-later',
'2 clause BSD': 'BSD-2-Clause',
'2-clause-BSD': 'BSD-2-Clause',
'3-Clause BSD': 'BSD-3-Clause',
'3-Clause-BSD': 'BSD-3-Clause',
'3-clause BSD': 'BSD-3-Clause',
'AGPL 3': 'AGPL-3.0-or-later',
'AGPL 3.0': 'AGPL-3.0-or-later',
'AGPL v3': 'AGPL-3.0-or-later',
AGPL: 'AGPL-3.0-or-later',
'AGPL, Copyright 2014 uh-sem-blee, Co.': 'AGPL-3.0-or-later',
'AGPL-3': 'AGPL-3.0-or-later',
AGPL3: 'AGPL-3.0-or-later',
AGPLV3: 'AGPL-3.0-or-later',
AGPLv3: 'AGPL-3.0-or-later',
'AGPLv3+': 'AGPL-3.0-or-later',
'AGPL-1.0': 'AGPL-1.0-only',
'AGPL-1.0+': 'AGPL-1.0-or-later',
'AGPL-3.0+': 'AGPL-3.0-or-later',
'AOL/MIT': 'MIT',
'APACHE 2': 'Apache-2.0',
'APACHE 2.0': 'Apache-2.0',
'APACHE V2.0': 'Apache-2.0',
APACHE: 'Apache-2.0',
'APACHE-2': 'Apache-2.0',
'APACHE-2.0': 'Apache-2.0',
'APACHE-V2': 'Apache-2.0',
APACHE2: 'Apache-2.0',
'APACHE2.0': 'Apache-2.0',
APACHE20: 'Apache-2.0',
APACHE2_0: 'Apache-2.0',
APGLv3: 'AGPL-3.0-or-later',
'APL 2.0': 'Apache-2.0',
APL: 'Apache-2.0',
APL2: 'Apache-2.0',
APLv2: 'Apache-2.0',
'Affero GPL or Commercial': 'AGPL-3.0-or-later',
'Affero GPL v3': 'AGPL-3.0-or-later',
'Affero GPL3': 'AGPL-3.0-or-later',
'Affero General Public License v3': 'AGPL-3.0-or-later',
'Affero-GPL': 'AGPL-3.0-or-later',
'Apache ': 'Apache-2.0',
'Apache 2 License': 'Apache-2.0',
'Apache 2': 'Apache-2.0',
'Apache 2.0 License': 'Apache-2.0',
'Apache 2.0 http://www.apache.org/licenses/': 'Apache-2.0',
'Apache 2.0': 'Apache-2.0',
'Apache Licence 2.0': 'Apache-2.0',
'Apache Licence v2': 'Apache-2.0',
'Apache License 2': 'Apache-2.0',
'Apache License 2.': 'Apache-2.0',
'Apache License 2.0': 'Apache-2.0',
'Apache License V2': 'Apache-2.0',
'Apache License V2.0': 'Apache-2.0',
'Apache License Version 2.0': 'Apache-2.0',
'Apache License Version 2.0,': 'Apache-2.0',
'Apache License v2': 'Apache-2.0',
'Apache License v2.0': 'Apache-2.0',
'Apache License version 2.0': 'Apache-2.0',
'Apache License': 'Apache-2.0',
'Apache License, 2.0': 'Apache-2.0',
'Apache License, Version 2.0': 'Apache-2.0',
'Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0': 'Apache-2.0',
'Apache License, v2.0': 'Apache-2.0',
'Apache License, version 2': 'Apache-2.0',
'Apache Public License v2': 'Apache-2.0',
'Apache Public License, Version 2': 'Apache-2.0',
'Apache Software License 2.0': 'Apache-2.0',
'Apache Software License Version 2': 'Apache-2.0',
'Apache V2': 'Apache-2.0',
'Apache V2.0': 'Apache-2.0',
'Apache Version 2': 'Apache-2.0',
'Apache Version 2.0': 'Apache-2.0',
'Apache lisence V2': 'Apache-2.0',
'Apache lisense 2.0': 'Apache-2.0',
'Apache v. 2': 'Apache-2.0',
'Apache v2 License': 'Apache-2.0',
'Apache v2': 'Apache-2.0',
'Apache v2.0': 'Apache-2.0',
'Apache version 2': 'Apache-2.0',
'Apache version 2.0': 'Apache-2.0',
Apache: 'Apache-2.0',
'Apache, Version 2.0': 'Apache-2.0',
'Apache, v2.0': 'Apache-2.0',
'Apache-2': 'Apache-2.0',
'Apache-2.0': 'Apache-2.0',
'Apache-License-2.0': 'Apache-2.0',
'Apache-V2': 'Apache-2.0',
'Apache-v2': 'Apache-2.0',
'Apache-v2.0': 'Apache-2.0',
Apache2: 'Apache-2.0',
'Apache2.0': 'Apache-2.0',
Apache20: 'Apache-2.0',
ApacheV2: 'Apache-2.0',
Apache_2_0: 'Apache-2.0',
Apachev2: 'Apache-2.0',
'Artistic 2.0': 'Artistic-2.0',
'Artistic License 2.0': 'Artistic-2.0',
'Artistic License': 'Artistic-2.0',
Artistic: 'Artistic-2.0',
'Attribution-NonCommercial': 'CC-BY-NC-4.0',
BEER: 'Beerware',
BEERWARE: 'Beerware',
BOOST: 'BSL-1.0',
'BS3 3-Clause': 'BSD-3-Clause',
'BSD 2-Clause license': 'BSD-2-Clause',
'BSD 2-Clause': 'BSD-2-Clause',
'BSD 2-clause': 'BSD-2-Clause',
'BSD 3 Clause': 'BSD-3-Clause',
'BSD 3': 'BSD-3-Clause',
'BSD 3-Clause': 'BSD-3-Clause',
'BSD 4-Clause': 'BSD-4-Clause',
'BSD-4-Clause': 'BSD-4-Clause',
'BSD 3-clause': 'BSD-3-Clause',
'BSD clause 3': 'BSD-3-Clause',
BSD: 'BSD-2-Clause',
'BSD-2 Clause': 'BSD-2-Clause',
'BSD-2-Clauseno': 'BSD-2-Clause',
'BSD-2-clause': 'BSD-2-Clause',
'BSD-3 Clause': 'BSD-3-Clause',
'BSD-3': 'BSD-3-Clause',
'BSD-3-Claude': 'BSD-3-Clause',
'BSD2-License': 'BSD-2-Clause',
BSD3: 'BSD-3-Clause',
'BSD3-Clause': 'BSD-3-Clause',
'Beer-Ware': 'Beerware',
BeerWare: 'Beerware',
Beerware: 'Beerware',
Boost: 'BSL-1.0',
CC0: 'CC0-1.0',
'CC BY 3.0': 'CC-BY-3.0',
'CC BY 4.0': 'CC-BY-4.0',
'CC-BY 3.0': 'CC-BY-3.0',
'CC-BY 4.0 International': 'CC-BY-4.0',
'Cc-by-3.0': 'CC-BY-3.0',
'Clear BSD License': 'BSD-3-Clause-Clear',
'DWTFYW License': 'WTFPL',
DWTFYW: 'WTFPL',
DWTFYWPL: 'WTFPL',
'Do what the fuck you want to public license': 'WTFPL',
'Eclipse Public License (EPL)': 'EPL-1.0',
'Eclipse Public License + Eclipse Distribution License': 'EPL-1.0',
'Eclipse Public License 1.0': 'EPL-1.0',
'Eclipse Public License': 'EPL-1.0',
'Eclipse Public License, Eclipse Distribution License': 'EPL-1.0',
Eclipse: 'EPL-1.0',
'Free BSD': 'BSD-2-Clause-FreeBSD',
FreeBSD: 'BSD-2-Clause-FreeBSD',
GLP: 'GPL-3.0-or-later',
GLPv3: 'GPL-3.0-or-later',
'GNU Affero GPL 3.0': 'AGPL-3.0-or-later',
'GNU Affero GPLv3': 'AGPL-3.0-or-later',
'GNU GENERAL PUBLIC LICENSE Version 2': 'GPL-2.0-only',
'GNU GENERAL PUBLIC LICENSE': 'GPL-3.0-or-later',
'GNU GLP v3.0': 'GPL-3.0-or-later',
'GNU GPL 3': 'GPL-3.0-or-later',
'GNU GPL 3.0': 'GPL-3.0-or-later',
'GNU GPL V2': 'GPL-2.0-only',
'GNU GPL V3.0': 'GPL-3.0-or-later',
'GNU GPL v2': 'GPL-2.0-only',
'GNU GPL v2.0': 'GPL-2.0-only',
'GNU GPL v3': 'GPL-3.0-or-later',
'GNU GPL v3.0': 'GPL-3.0-or-later',
'GNU GPL ver 3': 'GPL-3.0-or-later',
'GNU GPL': 'GPL-3.0-or-later',
'GNU GPLv2': 'GPL-2.0-only',
'GNU GPLv3': 'GPL-3.0-or-later',
'GNU GPLv3+': 'GPL-3.0-or-later',
'GNU General Public License v2.0': 'GPL-2.0-only',
'GNU General Public License v3': 'GPL-3.0-or-later',
'GNU General Public License': 'GPL-3.0-or-later',
'GNU General Public License, version 2': 'GPL-2.0-only',
'GNU General Public': 'GPL-3.0-or-later',
'GNU LESSER GENERAL PUBLIC LICENSE': 'LGPL-2.1-only',
'LESSER GENERAL PUBLIC LICENSE': 'LGPL-2.1-only',
'GNU Lesser General Public License v2.1': 'LGPL-2.1-only',
'GNU Lesser General Public License v3': 'LGPL-3.0-or-later',
'GNU Lesser General Public License v2': 'LGPL-2.0-only',
'GNU Lesser General Public License v2.0': 'LGPL-2.0-only',
'GNU Lesser General Public License v3.0': 'LGPL-3.0-or-later',
'GNU LGPL v3.0': 'LGPL-3.0-or-later',
'GNU AFFERO GENERAL PUBLIC LICENSE': 'AGPL-3.0-or-later',
'AFFERO GENERAL PUBLIC LICENSE': 'AGPL-3.0-or-later',
'GNU AGPL v3.0': 'AGPL-3.0-or-later',
'GNU License v3': 'GPL-3.0-or-later',
'GNU V3': 'GPL-3.0-or-later',
'GNU v2': 'GPL-2.0-only',
GNU: 'GPL-3.0-or-later',
'GNU-GPL': 'GPL-3.0-or-later',
'GNU/GPL': 'GPL-3.0-or-later',
'GNU/GPLv2': 'GPL-2.0-only',
'GPL 2': 'GPL-2.0-only',
'GPL 2.0': 'GPL-2.0-only',
'GPL 3': 'GPL-3.0-or-later',
'GPL 3.0': 'GPL-3.0-or-later',
'GPL V2': 'GPL-2.0-only',
'GPL V3': 'GPL-3.0-or-later',
'GPL V3.0': 'GPL-3.0-or-later',
'GPL Version 3': 'GPL-3.0-or-later',
'GPL v.2': 'GPL-2.0-only',
'GPL v2': 'GPL-2.0-only',
'GPL v3': 'GPL-3.0-or-later',
'GPL v3+': 'GPL-3.0-or-later',
'GPL v3.0': 'GPL-3.0-or-later',
GPL: 'GPL-3.0-or-later',
'GPL-1': 'GPL-1.0-only',
'GPL-2': 'GPL-2.0-only',
'GPL-1.0+': 'GPL-1.0-or-later',
'GPL-2.0-': 'GPL-2.0-only',
'GPL-2.0+': 'GPL-2.0-or-later',
'GPL-3': 'GPL-3.0-or-later',
'GPL-V3': 'GPL-3.0-or-later',
GPL2: 'GPL-2.0-only',
'GPL2+': 'GPL-2.0-or-later',
GPL3: 'GPL-3.0-or-later',
'GPL3.0': 'GPL-3.0-or-later',
'GPL3.0+': 'GPL-3.0-or-later',
GPLV2: 'GPL-2.0-only',
GPLV3: 'GPL-3.0-or-later',
GPLv2: 'GPL-2.0-only',
'GPLv2+': 'GPL-2.0-or-later',
GPLv3: 'GPL-3.0-or-later',
'GPLv3+': 'GPL-3.0-or-later',
'GPLv3.0': 'GPL-3.0-or-later',
GUN: 'GPL-3.0-or-later',
'Gnu public license v2.0': 'GPL-2.0-only',
'Gpl v3': 'GPL-3.0-or-later',
Gpl: 'GPL-3.0-or-later',
'Gpl-2.0': 'GPL-2.0-only',
'Gpl-3.0': 'GPL-3.0-or-later',
Gpl2: 'GPL-2.0-only',
'Http://opensource.org/licenses/MIT': 'MIT',
'Http://unlicense.org': 'Unlicense',
'Http://wtfpl.org/': 'WTFPL',
'Http://www.apache.org/licenses/LICENSE-2.0': 'Apache-2.0',
'Http://www.mozilla.org/MPL/2.0/': 'MPL-2.0',
'Http://www.opensource.org/licenses/MIT': 'MIT',
ISD: 'ISC',
IST: 'ISC',
Isc: 'ISC',
LGLP3: 'LGPL-3.0-or-later',
'LGPL 2.1': 'LGPL-2.1-only',
'LGPL 3': 'LGPL-3.0-or-later',
'LGPL 3.0': 'LGPL-3.0-or-later',
'LGPL Version 3.0': 'LGPL-3.0-or-later',
'LGPL v2': 'LGPL-2.0-only',
'LGPL v2+': 'LGPL-2.0-or-later',
'LGPL v3': 'LGPL-3.0-or-later',
LGPL: 'LGPL-3.0-or-later',
'LGPL-2': 'LGPL-2.0-only',
'LGPL-3': 'LGPL-3.0-or-later',
'LGPL.v3': 'LGPL-3.0-or-later',
LGPL2: 'LGPL-2.0-only',
'LGPL2.1': 'LGPL-2.1-only',
'LGPL2.1+': 'LGPL-2.1-or-later',
LGPL3: 'LGPL-3.0-or-later',
'LGPL3+': 'LGPL-3.0-or-later',
'LGPL3.0': 'LGPL-3.0-or-later',
'LGPL:': 'LGPL-3.0-or-later',
'LGPLv2.1': 'LGPL-2.1-only',
LGPLv3: 'LGPL-3.0-or-later',
'LGPLv3+': 'LGPL-3.0-or-later',
'LGPL-2.0+': 'LGPL-2.0-or-later',
'LGPL-2.1+': 'LGPL-2.1-or-later',
'LGPL-3.0+': 'LGPL-3.0-or-later',
'LICENSE-MIT': 'MIT',
'Licenses/GPL-3.0': 'GPL-3.0-or-later',
'M.I.T': 'MIT',
'M.I.T.': 'MIT',
'MIT ': 'MIT',
'MIT (http://mootools.net/license.txt)': 'MIT',
'MIT (https://github.com/AlekseyLeshko/say-me/blob/master/LICENSE)': 'MIT',
'MIT (https://github.com/AlekseyLeshko/testimonial.js/blob/master/LICENSE)': 'MIT',
'MIT (https://github.com/brentertz/scapegoat/blob/master/LICENSE-MIT)': 'MIT',
'MIT / http://rem.mit-license.org': 'MIT',
'MIT / http://www.highcharts.com/license/': 'MIT',
'MIT 1.0': 'MIT',
'MIT <http://bankfacil.mit-license.org>': 'MIT',
'MIT <http://opensource.org/licenses/MIT>': 'MIT',
'MIT <http://www.opensource.org/licenses/mit-license.php>': 'MIT',
'MIT @chetandhembre': 'MIT',
'MIT Copyright (c) 2015 Austin Eldridge': 'MIT',
'MIT LICENSE': 'MIT',
'MIT Licence': 'MIT',
'MIT License (MIT)': 'MIT',
'MIT License (http://opensource.org/licenses/MIT)': 'MIT',
'MIT License - http://opensource.org/licenses/MIT': 'MIT',
'MIT License': 'MIT',
'MIT License, http://www.opensource.org/licenses/MIT': 'MIT',
'MIT License, see LICENSE.md for details': 'MIT',
'MIT License. Copyright First Rally. All rights reserved.': 'MIT',
'MIT License.': 'MIT',
'MIT Licensed. http://www.opensource.org/licenses/mit-license.php': 'MIT',
'MIT Lisence': 'MIT',
'MIT licence': 'MIT',
'MIT license (MIT)': 'MIT',
'MIT license': 'MIT',
'MIT, Copyright (c) 2013 Michael Schoonmaker': 'MIT',
'MIT, http://opensource.org/licenses/MIT': 'MIT',
'MIT-LICENSE': 'MIT',
'MIT-License': 'MIT',
'MIT-Style': 'MIT',
'MIT-like': 'MIT',
'MIT/X': 'MIT',
'MIT/X11': 'MIT',
MIT2: 'MIT',
MITISC: 'MIT',
'MIT]': 'MIT',
MIT_License: 'MIT',
MITt: 'MIT',
'MPL 2': 'MPL-2.0',
'MPL 2.0': 'MPL-2.0',
'MPL V2': 'MPL-2.0',
'MPL v2': 'MPL-2.0',
'MPL v2.0': 'MPL-2.0',
MPL: 'MPL-2.0',
'MPL-2': 'MPL-2.0',
'MPL/2.0': 'MPL-2.0',
MPL2: 'MPL-2.0',
'MPL2.0': 'MPL-2.0',
MPLV2: 'MPL-2.0',
MPLv2: 'MPL-2.0',
'MPLv2.0': 'MPL-2.0',
MTI: 'MIT',
MiT: 'MIT',
Mit: 'MIT',
'MIT +no-false-attribs': 'MITNFA',
'Modified BSD': 'BSD-3-Clause',
'Mozilla Public License 1.1': 'MPL-1.1',
'Mozilla Public License 2.0': 'MPL-2.0',
'Mozilla Public License version 2': 'MPL-2.0',
'Mozilla Public License': 'MPL-2.0',
'Mozilla Public License, v. 2.0': 'MPL-2.0',
'Mozilla Public License, version 2.0': 'MPL-2.0',
NetBSD: 'BSD-2-Clause-NetBSD',
'New BSD': 'BSD-3-Clause',
'Old BSD': 'BSD-4-Clause',
'Original BSD License': 'BSD-4-Clause',
'Public Domain (UNLISCENSE)': 'Unlicense',
'Public Domain (Unlicense)': 'Unlicense',
'Public Domain <Unlicense>': 'Unlicense',
'Public domain(unlicense)': 'Unlicense',
'Public-domain (Unlicense)': 'Unlicense',
'Simplified BSD Licese': 'BSD-2-Clause',
'Standard 3-clause BSD': 'BSD-3-Clause',
'The Unlicense': 'Unlicense',
'Universal Permissive License': 'UPL-1.0',
UPL: 'UPL-1.0',
UNLICENSE: 'Unlicense',
UNLICENSED: 'Unlicense',
UNLICNSE: 'Unlicense',
Unlicence: 'Unlicense',
'Unlicense (http://unlicense.org/)': 'Unlicense',
'Unlicense (see http://unlicense.org/)': 'Unlicense',
Unlicense: 'Unlicense',
Unlicensed: 'Unlicense',
WTF: 'WTFPL',
WTFGPL: 'WTFPL',
'WTFPL 2': 'WTFPL',
'WTFPL <http://www.wtfpl.net/>': 'WTFPL',
WTFPLv2: 'WTFPL',
'WTHPL v1.0.0': 'WTFPL',
'Wtfpl (wtfpl.net)': 'WTFPL',
Wtfpl: 'WTFPL',
ZLIB: 'Zlib',
Zlib: 'Zlib',
'Zlib/libpng': 'Zlib',
mit: 'MIT',
'© 2014 WTFPL – Do What the Fuck You Want to Public License.': 'WTFPL',
CDDL: 'CDDL-1.1',
'license GPLv2': 'GPL-2.0-only'
}
/* eslint-enable max-len */
test('examples', function (test) {
Object.keys(examples)
.forEach(function (input) {
var corrected = examples[input]
test.test(input, function (test) {
test.equal(
correct(input),
corrected,
'corrects "' + input + '" to "' + corrected + '"'
)
if (corrected !== null) {
test.ok(
valid(corrected),
'"' + corrected + '" is a valid SPDX identifier'
)
}
test.end()
})
})
test.end()
})
test('Empty String', function (test) {
test.throws(function () {
correct('')
}, /invalid argument/i)
test.end()
})
var noUpgradeExamples = {
'GPL 2': 'GPL-2.0',
'GPL 2.0': 'GPL-2.0',
'GPL 3': 'GPL-3.0',
'gpl-3.0': 'GPL-3.0',
'GPL 3.0': 'GPL-3.0',
'GPL V2': 'GPL-2.0',
'GPL V3': 'GPL-3.0',
'GPL V3.0': 'GPL-3.0',
'GPL Version 3': 'GPL-3.0',
'GPL v.2': 'GPL-2.0',
'GPL v2': 'GPL-2.0',
'GPL v3': 'GPL-3.0',
'GPL v3+': 'GPL-3.0+',
'GPL v3.0': 'GPL-3.0',
GPL: 'GPL-3.0-or-later',
'GPL-1': 'GPL-1.0',
'GPL-2': 'GPL-2.0',
'GPL-1.0+': 'GPL-1.0+',
'GPL-2.0-': 'GPL-2.0-only',
'GPL-2.0+': 'GPL-2.0+',
'GPL-3': 'GPL-3.0',
'GPL-V3': 'GPL-3.0-or-later',
GPL2: 'GPL-2.0',
'GPL2+': 'GPL-2.0+',
GPL3: 'GPL-3.0',
'GPL3.0': 'GPL-3.0',
'GPL3.0+': 'GPL-3.0+'
}
test('Opt out of upgrades', function (test) {
Object.keys(noUpgradeExamples)
.forEach(function (input) {
var corrected = noUpgradeExamples[input]
test.test(input, function (test) {
test.equal(
correct(input, { upgrade: false }),
corrected,
'corrects "' + input + '" to "' + corrected + '"'
)
test.end()
})
})
test.end()
})