it

val <T> Expect<T>.it: Expect<T>(source)

Inline property referring actually to this and allows writing infix assertions within an expectation-group

For instance, instead of:

expect("hello world") {
this toStartWith "hello"
this toEndWith "world"
}

You can write

expect("hello world") {
it toStartWith "hello"
it toEndWith "world"
}

Return

this

Since

0.12.0