• Robert Knight's avatar
    Use $q rather than native Promise in `store` · cac26947
    Robert Knight authored
    Testing code that mixes native promises with $q promises (eg. as
    returned by $http methods) is a PITA in tests because in that
    environment:
    
     1. Native promises behave as usual - resolving on the next tick
    
     2. $q promises do not resolve until a digest is triggered explicitly.
    
    As a result, causing a promise pipeline involving both types of promises
    to fully execute is tricky.
    
    Sticking to `$q` promises for the moment means that
    `$httpBackend.flush()` will synchronously flush any resolved promises
    and HTTP requests.
    
    In future we can replace this crap with plain fetch() as part of
    extracting the Hypothesis API client as a separate entity from the
    client.
    cac26947
Name
Last commit
Last update
..
integration Loading commit data...
annotation-fixtures.js Loading commit data...
annotation-mapper-test.js Loading commit data...
annotation-metadata-test.js Loading commit data...
annotation-ui-test.js Loading commit data...
annotation-viewer-controller-test.js Loading commit data...
app-controller-test.js Loading commit data...
auth-test.js Loading commit data...
bootstrap.js Loading commit data...
build-thread-test.js Loading commit data...
drafts-test.js Loading commit data...
fake-redux-store.js Loading commit data...
features-test.js Loading commit data...
form-respond-test.coffee Loading commit data...
frame-sync-test.js Loading commit data...
groups-test.js Loading commit data...
host-test.coffee Loading commit data...
local-storage-test.coffee Loading commit data...
login-form-test.coffee Loading commit data...
markdown-commands-test.js Loading commit data...
media-embedder-test.js Loading commit data...
permissions-test.coffee Loading commit data...
raven-test.js Loading commit data...
render-markdown-test.js Loading commit data...
retry-util-test.js Loading commit data...
root-thread-test.js Loading commit data...
search-client-test.js Loading commit data...
search-filter-test.coffee Loading commit data...
service-url-test.js Loading commit data...
session-test.js Loading commit data...
store-test.js Loading commit data...
stream-controller-test.coffee Loading commit data...
streamer-test.js Loading commit data...
tabs-test.js Loading commit data...
tags-test.coffee Loading commit data...
time-test.js Loading commit data...
unicode-test.coffee Loading commit data...
view-filter-test.coffee Loading commit data...
virtual-thread-list-test.js Loading commit data...
websocket-test.js Loading commit data...
widget-controller-test.js Loading commit data...