From 98265287f3c9d4c8096bf5d3b0e301086a5538ee Mon Sep 17 00:00:00 2001 From: yashkohli88 Date: Mon, 23 Dec 2024 14:15:34 +0530 Subject: [PATCH] Updated test case for new license added in list --- test/lib/util.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/lib/util.js b/test/lib/util.js index a4597a3d..cbeaabe6 100644 --- a/test/lib/util.js +++ b/test/lib/util.js @@ -34,11 +34,14 @@ describe('Utils latest version', () => { it('should extract license from license URLs', () => { const inputs = { - 'http://glassfish.java.net/public/CDDL+GPL_1_1.html': 'CDDL-1.1 or GPL-2.0-with-classpath-exception', - 'https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html': 'CDDL-1.1 or GPL-2.0-with-classpath-exception', + 'http://glassfish.java.net/public/CDDL+GPL_1_1.html': 'CDDL-1.1 or GPL-2.0-only WITH Classpath-exception-2.0', + 'https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html': 'CDDL-1.1 or GPL-2.0-only WITH Classpath-exception-2.0', + 'https://glassfish.java.net/public/CDDL%2BGPL.html': 'CDDL-1.0 OR GPL-2.0-only WITH Classpath-exception-2.0', + 'https://glassfish.dev.java.net/public/CDDL+GPL.html': 'CDDL-1.0 OR GPL-2.0-only WITH Classpath-exception-2.0', + 'https://glassfish.dev.java.net/public/CDDLv1.0.html': 'CDDL-1.0', 'http://www.eclipse.org/legal/epl-v10.html': 'EPL-1.0', 'https://www.eclipse.org/legal/epl-2.0/': 'EPL-2.0', - 'http://www.eclipse.org/org/documents/edl-v10.php': 'EDL-1.0', + 'http://www.eclipse.org/org/documents/edl-v10.php': 'BSD-3-Clause', 'https://www.mozilla.org/en-US/MPL/2.0/': 'MPL-2.0', 'https://www.mozilla.org/en-US/MPL/1.1/': 'MPL-1.1', 'http://www.mozilla.org/MPL/MPL-1.1.html': 'MPL-1.1',