Core Modules@serenity-js/assertionsExpectationsstartsWithexternalstartsWith CallablestartsWith(...answerableArguments: [expected: Answerable<string>]): Expectation<string>Creates an expectation that is met when the actual string value starts with the resolved value of expected. Ensuring that a given string starts with an expected substringimport { actorCalled } from '@serenity-js/core'import { Ensure, startsWith } from '@serenity-js/assertions'await actorCalled('Ester').attemptsTo( Ensure.that('Hello World!', startsWith('Hello')),)Parametersexternalrest...answerableArguments: [expected: Answerable<string>]Returns Expectation<string>
Creates an expectation that is met when the actual
string
value starts with the resolved value ofexpected
.Ensuring that a given string starts with an expected substring