package thb.jeanluc.adventure.io.text;

import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;

class BannerTest {

    @Test
    void welcome_containsTitleAsHeading() {
        StyledText b = Banner.welcome("Haunted Manor");
        assertThat(b.plainText()).contains("Haunted Manor");
        boolean hasHeading = b.spans().stream().anyMatch(s -> s.style() == Style.HEADING);
        assertThat(hasHeading).isTrue();
    }
}
