• Robert Knight's avatar
    Replace angular-mocks in service tests · 99988ea9
    Robert Knight authored
    As part of the migration away from Angular, replace the use of
    angular-mocks for constructing service instances in tests.
    
     - For tests that only have one or two dependencies, call the service
       constructor directly
     - For tests that have many dependencies, enough that the order could be
       easily mixed up if calling the constructor directly, re-use the
       `Injector` class which is used to wire up services in the real
       application
    
    Several of these tests relied on Angular's built-in `$rootScope`
    service. Use of this should go away entirely soon, but for this commit,
    just replace it with a minimal mock - either an object with stubs or an
    `EventEmitter`.
    99988ea9
Name
Last commit
Last update
..
components Loading commit data...
services Loading commit data...
store Loading commit data...
templates Loading commit data...
test Loading commit data...
util Loading commit data...
build-thread.js Loading commit data...
cross-origin-rpc.js Loading commit data...
events.js Loading commit data...
ga.js Loading commit data...
get-api-url.js Loading commit data...
host-config.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-config.js Loading commit data...
ui-constants.js Loading commit data...
virtual-thread-list.js Loading commit data...
websocket.js Loading commit data...