Copyright: Update Konsist test

This commit is contained in:
Benoit Marty 2025-11-10 10:26:37 +01:00 committed by Benoit Marty
parent 1292da2a72
commit f5f1cee53b

View file

@ -16,10 +16,10 @@ import org.junit.Test
class KonsistLicenseTest { class KonsistLicenseTest {
private val publicLicense = """ private val publicLicense = """
/\* /\*
(?:.*\n)* \* Copyright 20\d\d((, |-)20\d\d)? New Vector Ltd. (?:.*\n)* \* Copyright \(c\) 20\d\d((, |-)20\d\d)? Element Creations Ltd\.
(?:.*\n)* \* (?:.*\n)* \*
\* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial. \* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial\.
\* Please see LICENSE files in the repository root for full details. \* Please see LICENSE files in the repository root for full details\.
\*/ \*/
""".trimIndent().toRegex() """.trimIndent().toRegex()
@ -81,7 +81,7 @@ class KonsistLicenseTest {
it.name.startsWith("Template ").not() it.name.startsWith("Template ").not()
} }
.assertTrue { .assertTrue {
it.text.count("New Vector") == 1 it.text.count("Element Creations") == 1
} }
} }
} }