Regular Expressions 101

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(\w+\.\w+)(\.withArgs\((.+)\))?\.returns\((.+)\)
/
g

Description

Replaces sinon.js stubs configuration with similar behaviour achievied using the ts-mockito library

Submitted by anonymous - 8 years ago