Closed danburzo closed 8 years ago
Thanks @danburzo. My best idea for testing this is to take the very complex test in the if and put it in its own testable function, perhaps called something like isRedoKeyCombination
, and then write a test against that.
We don't have a module for this at the moment so maybe create a top-level module, something like keystrokes.js
?
Hi @rrees! I've just added a new keystrokes
module and some tests.
Looks super good to me. :+1:
I'll try and organise a release as soon as I have time.
Now that I seem to be able to run Scribe locally, tests & all, I'm providing the fix I proposed on #448. I'm not sure how to approach writing a test for this, any ideas?