Sha256: f4bb79c490802be4b9de207970e3d48ea47e4194cd658e2053bb98ac2ba8891f
Contents?: true
Size: 553 Bytes
Versions: 6
Compression:
Stored size: 553 Bytes
Contents
# iron-test-helpers Utility classes to make testing easier. ## Mock Interactions This is a set of methods to simulate mouse or keyboard interaction with an element. Include `mock-interactions.js` and then use them like so: ```javascript test('can be triggered with space', function(done) { button.addEventListener('keydown', function() { done(); }); MockInteractions.pressSpace(button); }); test('can be clicked', function(done) { button.addEventListener('click', function() { done(); }); MockInteractions.down(button); }); ```
Version data entries
6 entries across 6 versions & 2 rubygems