• 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
..
annotator Loading commit data...
boot Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
test-util Loading commit data...
types Loading commit data...
.eslintrc Loading commit data...
karma.config.js Loading commit data...
tsconfig.json Loading commit data...