/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 *  License, v. 2.0. If a copy of the MPL was not distributed with this
 *  file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

package mozilla.components.support.ktx.android.util

import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner

@RunWith(RobolectricTestRunner::class)
class Base64Test {
    @Test
    fun `encodeToUriString contains required data URI format`() {
        val s = Base64.encodeToUriString("foo")
        Assert.assertTrue(s.contains("data:text/html;base64,"))
        Assert.assertTrue(s.contains("Zm9v"))
    }
}