Skip to content

endWith

.endWith()

Tests that the tested string ends with the expected value.

Asserts that a string ends with the expected suffix.

Examples

Basic Usage

expect("str\ning").to.endWith("ing");