You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method should be public and should return a stubbed method (like the one passed in) that should be able to tell the user if it was called
Why
This is a testing framework dammit!
Checklist
Update README where needed
Unit tests
Maybe integration tests? Feel unit tests cover it fully
Resources
Use the following issue as a guideline if possible
Pseudo-code for Implementation
Stub: function(fn: Function): Function{}// Maybe used like so:// Maybe something along the lines of:letfunctionWasCalled=false;functiontestFn(){functionWasCalled=true;return"Hello world!";}constcopyTestFn=testFn;Rhum.TestPlan("Testing TestCase",copyTestFn);asserts.assertEquals(functionWasCalled,true);
The text was updated successfully, but these errors were encountered:
What
Develop the following method:
Rhum.Stub
Method should be public and should return a stubbed method (like the one passed in) that should be able to tell the user if it was called
Why
This is a testing framework dammit!
Checklist
Update README where needed
Unit tests
Maybe integration tests? Feel unit tests cover it fully
Resources
Use the following issue as a guideline if possible
Pseudo-code for Implementation
The text was updated successfully, but these errors were encountered: