@@ -7,7 +7,7 @@ import * as path from 'path'
77 * AboutDialog License Compliance Tests
88 *
99 * These tests verify that the About dialog properly displays required
10- * attribution information as mandated by the CC-BY-ND -4.0 license.
10+ * attribution information as mandated by the CC-BY-SA -4.0 license.
1111 */
1212describe ( 'AboutDialog License Compliance' , ( ) => {
1313 const aboutDialogPath = path . join ( __dirname , 'AboutDialog.tsx' )
@@ -19,17 +19,17 @@ describe('AboutDialog License Compliance', () => {
1919
2020 it ( 'should contain the license notice in the component file' , ( ) => {
2121 expect ( aboutDialogContent ) . to . include ( 'LICENSE NOTICE' )
22- expect ( aboutDialogContent ) . to . include ( 'CC-BY-ND -4.0' )
22+ expect ( aboutDialogContent ) . to . include ( 'CC-BY-SA -4.0' )
2323 } )
2424
2525 it ( 'should display author attribution (Thomas Nordquist)' , ( ) => {
2626 // Verify the author is displayed in the component
2727 expect ( aboutDialogContent ) . to . match ( / A u t h o r .* T h o m a s N o r d q u i s t / )
2828 } )
2929
30- it ( 'should display CC-BY-ND -4.0 license' , ( ) => {
30+ it ( 'should display CC-BY-SA -4.0 license' , ( ) => {
3131 // Verify the license is displayed in the component
32- expect ( aboutDialogContent ) . to . match ( / L i c e n s e .* C C - B Y - N D - 4 .0 / )
32+ expect ( aboutDialogContent ) . to . match ( / L i c e n s e .* C C - B Y - S A - 4 .0 / )
3333 } )
3434
3535 it ( 'should have data-testid attributes for license verification' , ( ) => {
@@ -39,46 +39,46 @@ describe('AboutDialog License Compliance', () => {
3939 } )
4040
4141 describe ( 'License Violation Detection' , ( ) => {
42- it ( 'removing author attribution violates CC-BY-ND -4.0 license' , ( ) => {
42+ it ( 'removing author attribution violates CC-BY-SA -4.0 license' , ( ) => {
4343 // Test that the author name "Thomas Nordquist" is present
44- // Removing it would violate the Attribution requirement of CC-BY-ND -4.0
44+ // Removing it would violate the Attribution requirement of CC-BY-SA -4.0
4545 const hasAuthor = aboutDialogContent . includes ( 'Thomas Nordquist' )
4646
4747 if ( ! hasAuthor ) {
4848 throw new Error (
4949 'LICENSE VIOLATION: Author attribution "Thomas Nordquist" is missing. ' +
50- 'This violates the CC-BY-ND -4.0 license Attribution requirement. ' +
50+ 'This violates the CC-BY-SA -4.0 license Attribution requirement. ' +
5151 'The author must be properly credited in the About dialog.'
5252 )
5353 }
5454
5555 expect ( hasAuthor ) . to . be . true
5656 } )
5757
58- it ( 'removing license notice violates CC-BY-ND -4.0 license' , ( ) => {
59- // Test that the license "CC-BY-ND -4.0" is displayed
58+ it ( 'removing license notice violates CC-BY-SA -4.0 license' , ( ) => {
59+ // Test that the license "CC-BY-SA -4.0" is displayed
6060 // Removing it would violate the license requirements
61- const hasLicense = aboutDialogContent . includes ( 'CC-BY-ND -4.0' )
61+ const hasLicense = aboutDialogContent . includes ( 'CC-BY-SA -4.0' )
6262
6363 if ( ! hasLicense ) {
6464 throw new Error (
65- 'LICENSE VIOLATION: License notice "CC-BY-ND -4.0" is missing. ' +
66- 'This violates the CC-BY-ND -4.0 license requirements. ' +
65+ 'LICENSE VIOLATION: License notice "CC-BY-SA -4.0" is missing. ' +
66+ 'This violates the CC-BY-SA -4.0 license requirements. ' +
6767 'The license must be displayed in the About dialog.'
6868 )
6969 }
7070
7171 expect ( hasLicense ) . to . be . true
7272 } )
7373
74- it ( 'removing LICENSE NOTICE comment violates CC-BY-ND -4.0 license' , ( ) => {
74+ it ( 'removing LICENSE NOTICE comment violates CC-BY-SA -4.0 license' , ( ) => {
7575 // Test that the LICENSE NOTICE comment is present in the source
7676 const hasLicenseNotice = aboutDialogContent . includes ( 'LICENSE NOTICE' )
7777
7878 if ( ! hasLicenseNotice ) {
7979 throw new Error (
8080 'LICENSE VIOLATION: LICENSE NOTICE comment is missing from source code. ' +
81- 'This violates the CC-BY-ND -4.0 license documentation requirements. ' +
81+ 'This violates the CC-BY-SA -4.0 license documentation requirements. ' +
8282 'The license notice must be retained in the component source.'
8383 )
8484 }
0 commit comments