-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache: Ensure add/put return a promise for read-only master stores
Note that for simplicity's sake, this fix presumes that the master store adheres to the documented behavior of the add and put APIs, i.e. that it returns an object; if it returns a falsy value, this fix will end up returning the result of add/put on the caching store in that case too. This commit also updates RequestMemory tests to remove when calls and test Cache APIs for promises. (Without the fixes in Cache.js, the add/put tests will fail.) Conflicts: tests/RequestMemory.js
- Loading branch information
1 parent
9cc63ae
commit 9a4a777
Showing
2 changed files
with
40 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters