/*
 * SPDX-License-Identifier: GPL-3.0-or-later
 */
package com.runicgateway.app

import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Test

/**
 * Placeholder JVM unit test so the `test` CI gate has something to run in M0.
 * Real repository / view-model tests arrive with the functional pass (M1+).
 *
 * Assertions must be variant-agnostic: the `test` task runs both the debug and
 * release unit-test variants, so nothing here may depend on `BuildConfig.DEBUG`.
 */
class ScaffoldSanityTest {
    @Test
    fun applicationIdMatchesNamespace() {
        assertEquals("com.runicgateway.app", BuildConfig.APPLICATION_ID)
    }

    @Test
    fun versionNameIsSet() {
        assertTrue(BuildConfig.VERSION_NAME.isNotBlank())
    }
}
