Expected

io.github.frikit.twirlspec.expect.Expected
See theExpected companion object
sealed trait Expected

Something a check expects to find on the page, expressed either as a message key (the default, because that is what GOV.UK content always is) or as a literal string.

Attributes

Companion
object
Source
Expected.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Anything
class Key
class Literal
class Pattern

Members list

Value members

Abstract methods

def describe: String

How this expected value appears in a failure message.

How this expected value appears in a failure message.

Attributes

Source
Expected.scala
def resolve(page: Page): Either[Violation, String]

The text to compare against on this page, or the violation to report when it cannot be resolved.

The text to compare against on this page, or the violation to report when it cannot be resolved.

Attributes

Source
Expected.scala