diff --git a/test/doc-views/TR/Recommendation/REC.js b/test/doc-views/TR/Recommendation/REC.js index 344cd6366..0601a620e 100644 --- a/test/doc-views/TR/Recommendation/REC.js +++ b/test/doc-views/TR/Recommendation/REC.js @@ -126,8 +126,7 @@ export default { ...good.sotd.rec, showProposedAdd: true, }, - processHTML: - '2 November 2024, 3 November 2024 W3C Process Document', + processHTML: `2 November ${currentYear}, 3 November ${currentYear} W3C Process Document`, }, }, notFound: { diff --git a/test/doc-views/TR/Registry/CRY.js b/test/doc-views/TR/Registry/CRY.js index 86add3736..8b1356868 100644 --- a/test/doc-views/TR/Registry/CRY.js +++ b/test/doc-views/TR/Registry/CRY.js @@ -2,6 +2,7 @@ import { config } from '../../../../lib/profiles/TR/Registry/CRY.js'; import registryBase from './registryBase.js'; const { buildCommonViewData, data } = registryBase; +const currentYear = new Date().getFullYear(); const profile = 'CRY'; const customData = { @@ -28,15 +29,14 @@ export default { ...good, header: { ...good.header, - defaultDate: '04 November 2025', + defaultDate: `04 November ${currentYear}`, }, }, multipleDateFound: { ...good, sotd: { ...good.sotd, - processHTML: - '04 October 2024. 05 October 2024.W3C Process Document', + processHTML: `04 October ${currentYear}. 05 October ${currentYear}.W3C Process Document`, }, }, invalidDate: { diff --git a/test/doc-views/TR/TRBase.js b/test/doc-views/TR/TRBase.js index 6920578d0..26bc5d276 100644 --- a/test/doc-views/TR/TRBase.js +++ b/test/doc-views/TR/TRBase.js @@ -5,6 +5,8 @@ import { export { data }; +const currentYear = new Date().getFullYear(); + export function buildCommonViewData(base) { const common = _buildCommonViewData(base); return { @@ -75,8 +77,7 @@ export function buildCommonViewData(base) { copyright: { ...base.copyright, showDefault: false, - exceptionHtml: - 'Copyright © 1999-2024 International Digital Publishing Forum and World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply.', + exceptionHtml: `Copyright © 1999-${currentYear} International Digital Publishing Forum and World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply.`, }, }, copyrightExceptionNotFound: { @@ -93,8 +94,7 @@ export function buildCommonViewData(base) { copyright: { ...base.copyright, showDefault: false, - exceptionHtml: - 'Copyright Exception Not Found © 1999-2024 International Digital Publishing Forum and World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply.', + exceptionHtml: `Copyright Exception Not Found © 1999-${currentYear} International Digital Publishing Forum and World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply.`, }, }, }, @@ -255,14 +255,14 @@ export function buildCandidateReviewEnd(base) { ...base, sotd: { ...base.sotd, - defaultCRDate: '04 October 2024. 05 October 2024.', + defaultCRDate: `04 November ${currentYear}. 05 November ${currentYear}.`, }, }, invalidDate: { ...base, sotd: { ...base.sotd, - defaultCRDate: '02 October 2025', + defaultCRDate: '02 October 2030', }, }, }; diff --git a/test/doc-views/layout/spec.handlebars b/test/doc-views/layout/spec.handlebars index 7d8887f2c..54016f978 100644 --- a/test/doc-views/layout/spec.handlebars +++ b/test/doc-views/layout/spec.handlebars @@ -36,8 +36,8 @@ {{/if}}
- W3C {{! if document is Echidna, use current date. else, use default date}} + W3C