• Nick Stenning's avatar
    Improve error handling in test that uses setTimeout · 29fd17c6
    Nick Stenning authored
    If one of these asserts fails, then this test will timeout (taking 2
    seconds to do so).
    
    By using a small helper (`timeoutPromise`) to implement the "next tick"
    functionality that was previously achieved with `setTimeout`, this is
    improved: we return a promise from the test function and a failure will
    be reported immediately.
    
    See https://mochajs.org/#working-with-promises for more on returning
    promises from mocha test functions.
    29fd17c6
Name
Last commit
Last update
..
anchoring Loading commit data...
plugin Loading commit data...
test Loading commit data...
guest.coffee Loading commit data...
highlighter.coffee Loading commit data...
host.coffee Loading commit data...
main.js Loading commit data...
pdf-sidebar.coffee Loading commit data...
sidebar.coffee Loading commit data...