its
Extracts a feature out of the current subject of this
expectation with the help of the given extractor, creates a new Expect for it and returns it so that subsequent calls are based on the feature.
Return
The newly created Expect for the extracted feature.
Since
0.16.0
Extracts a feature out of the current subject of this
expectation with the help of the given extractorWithCreator.extractor, creates a new Expect for it, applies an expectation-group based on the given extractorWithCreator.assertionCreator for the feature and returns the initial Expect with the current subject.
Return
an Expect for the subject of this
expectation.
Since
0.16.0
Inline property referring actually to this
and allows writing infix assertions within an expectation-group
For instance, instead of:
expect(person) {
this name toEqual 1
}
You can write
expect("hello world") {
its name toEqual 1
}
Return
this
Since
0.12.0