• Nick Stenning's avatar
    Be strict about request counting in tests · e003383b
    Nick Stenning authored
    The angular $httpBackend mocking service supports two primary means of
    usage:
    
       .expect(...).respond(...)
    
    and
    
       .when(...).respond(...)
    
    The latter pattern allows a single handler to respond to multiple
    requests, in any order. The latter is precise -- one .expect() must be
    matched by one request, in the correct order.
    
    This commit changes the tests for the "features" service to use this
    more precise form of testing.
    e003383b
Name
Last commit
Last update
..
account Loading commit data...
annotator Loading commit data...
config Loading commit data...
directive Loading commit data...
filter Loading commit data...
test Loading commit data...
vendor Loading commit data...
.gitignore Loading commit data...
annotation-mapper.coffee Loading commit data...
annotation-sync.coffee Loading commit data...
annotation-ui-controller.coffee Loading commit data...
annotation-ui-sync.coffee Loading commit data...
annotation-ui.coffee Loading commit data...
annotation-viewer-controller.coffee Loading commit data...
app-controller.coffee Loading commit data...
app.coffee Loading commit data...
auth.coffee Loading commit data...
blocklist.js Loading commit data...
bridge.coffee Loading commit data...
cross-frame.coffee Loading commit data...
discovery.coffee Loading commit data...
drafts.coffee Loading commit data...
features.js Loading commit data...
flash.coffee Loading commit data...
form-respond.coffee Loading commit data...
host.coffee Loading commit data...
identity.coffee Loading commit data...
karma.config.js Loading commit data...
local-storage.coffee Loading commit data...
permissions.coffee Loading commit data...
pulse.coffee Loading commit data...
query-parser.coffee Loading commit data...
render.coffee Loading commit data...
search-filter.coffee Loading commit data...
session.coffee Loading commit data...
store.coffee Loading commit data...
stream-controller.coffee Loading commit data...
stream-filter.coffee Loading commit data...
streamer.coffee Loading commit data...
tags.coffee Loading commit data...
threading.coffee Loading commit data...
time.coffee Loading commit data...
unicode.coffee Loading commit data...
view-filter.coffee Loading commit data...
widget-controller.coffee Loading commit data...