Copyright: Update Konsist test
This commit is contained in:
committed by
Benoit Marty
parent
1292da2a72
commit
f5f1cee53b
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user