• Eduardo Sanz García's avatar
    Create and destroy fake clock on the same `it` function · a421fc26
    Eduardo Sanz García authored
    There seems to be a pattern in our code that if a fake clock is used on
    a single `it` function, the clock should be created and restored within
    that function. I think it is beneficial from a readability perspective.
    On the other hand, if the clock is used in several test functions it
    should be declared on a parent context and restored on an `afterEach`
    function.
    
    I simplified an unrelated test using async.
    a421fc26
Name
Last commit
Last update
..
components Loading commit data...
config Loading commit data...
helpers Loading commit data...
services Loading commit data...
store Loading commit data...
test Loading commit data...
util Loading commit data...
cross-origin-rpc.js Loading commit data...
icons.js Loading commit data...
index.js Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
render-markdown.js Loading commit data...
search-client.js Loading commit data...
service-context.js Loading commit data...
websocket.js Loading commit data...