DescriptionRefactor sinon helper to make it easier to use.
Previously unittests using sinon were required to use sinon.$setupStub
in order to typecheck correctly. It was usable only for the case when
the test wants to stub a single method, but not when a whole object is
stubbed. This CL gets rid of $setupStub and adds $testStub() function
that simply casts parameter to the TestStub type.
Committed: https://crrev.com/7ebfce1f9a43daef22f1d7601b4bbc031672bdc9
Cr-Commit-Position: refs/heads/master@{#320154}
Patch Set 1 #Patch Set 2 : #Messages
Total messages: 9 (4 generated)
|