Copyright: Update Konsist test

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

View file

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