• Robert Knight's avatar
    Refactor `SessionService` to a more idiomatic ES class · 1c3aa03b
    Robert Knight authored
     - Convert closures into methods
    
     - Remove the `profileFetchRetryOpts` field that was used only to shorten the
       delay between retries in tests, in favor of mocking
       `retryPromiseOperation` in tests to remove the delay between retries.
    
     - Change `SessionService` instance creation in tests to allow
       individual tests to run custom setup logic before the service is
       constructed. This was needed due to allow the `serviceConfig` mock to
       take effect when the `SessionService` constructor runs
    
     - Remove unnecessary custom Sinon sandbox in tests
    1c3aa03b
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...