String Operations
Test string content with these assertions.
contain / contains
Asserts that a string contains the expected substring.
expect("hello world").to.contain("world");expect("hello world").to.contain("o w");expect("hello world").to.contains("world"); // aliasstartWith
Asserts that a string starts with the expected prefix.
expect("hello").to.startWith("hel");expect("https://example.com").to.startWith("https://");endWith
Asserts that a string ends with the expected suffix.
expect("hello").to.endWith("llo");expect("file.txt").to.endWith(".txt");