@@ -18,9 +18,11 @@ import {AnyStringMatcher} from "./matcher/type/AnyStringMatcher";
1818import { AnythingMatcher } from "./matcher/type/AnythingMatcher" ;
1919import { BetweenMatcher } from "./matcher/type/BetweenMatcher" ;
2020import { DeepEqualMatcher } from "./matcher/type/DeepEqualMatcher" ;
21+ import { EndsWithMatcher } from "./matcher/type/EndsWithMatcher" ;
2122import { MatchingStringMatcher } from "./matcher/type/MatchingStringMatcher" ;
2223import { NotNullMatcher } from "./matcher/type/NotNullMatcher" ;
2324import { ObjectContainingMatcher } from "./matcher/type/ObjectContainingMatcher" ;
25+ import { StartsWithMatcher } from "./matcher/type/StartsWithMatcher" ;
2426import { StrictEqualMatcher } from "./matcher/type/StrictEqualMatcher" ;
2527import { MethodStubSetter } from "./MethodStubSetter" ;
2628import { MethodStubVerificator } from "./MethodStubVerificator" ;
@@ -119,6 +121,14 @@ export function match(expectedValue: RegExp | string): any {
119121 return new MatchingStringMatcher ( expectedValue ) as any ;
120122}
121123
124+ export function startsWith ( expectedValue : string ) : string {
125+ return new StartsWithMatcher ( expectedValue ) as any ;
126+ }
127+
128+ export function endsWith ( expectedValue : string ) : string {
129+ return new EndsWithMatcher ( expectedValue ) as any ;
130+ }
131+
122132export function objectContaining ( expectedValue : Object ) : any {
123133 return new ObjectContainingMatcher ( expectedValue ) as any ;
124134}
@@ -143,5 +153,7 @@ export default {
143153 notNull,
144154 strictEqual,
145155 match,
156+ startsWith,
157+ endsWith,
146158 objectContaining,
147159} ;
0 commit comments