We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right now, testdouble.js blows up if—in the same statement as a stubbing—the user attempts to stub a different test double.
Example failing test:
describe 'nested whens', -> Given -> @knob = td.function() Given -> @door = td.function() Given -> td.when(@knob('twist')).thenReturn door: td.when(@door('push')).thenReturn('open') When -> @result = @knob('twist').door('push') Then -> @result == 'open'
This is because the call store has just a single lastCall that it tracks, when in reality it should probably resemble a stack instead.
lastCall
The text was updated successfully, but these errors were encountered:
Failing test for #117
b471b48
Fixes #117
abbf051
No branches or pull requests
Right now, testdouble.js blows up if—in the same statement as a stubbing—the user attempts to stub a different test double.
Example failing test:
This is because the call store has just a single
lastCall
that it tracks, when in reality it should probably resemble a stack instead.The text was updated successfully, but these errors were encountered: