Asserts that the string has the specified length.

expect('Hello world', 'to have length', 11);