Find a file
Dan Stillman 16706ba481 Allow Zotero.HTTP.request() to be mocked
sinon.useFakeXMLHttpRequest() doesn't work in our case, but if
Zotero.HTTP.mock is set, Zotero.HTTP.request() will create new instances of
that object instead of the built-in XMLHttpRequest, so it can be set to
FakeXMLHttpRequest:

Zotero.HTTP.mock = sinon.FakeXMLHttpRequest;
var server = sinon.fakeServer.create();
server.autoRespond = true;
server.respondWith("GET", "/users/1",
  [200, {"Content-Type": "application/json"}, '{"userID": 1}']);
var userInfo = yield getUser();
Zotero.HTTP.mock = null;
server.restore(); // probably not necessary
2015-06-07 15:23:12 -04:00
chrome Allow Zotero.HTTP.request() to be mocked 2015-06-07 15:23:12 -04:00
components Collections data layer cleanup 2015-05-24 04:37:34 -04:00
defaults/preferences Merge 4.0 up to 28301ea45f 2015-05-26 17:48:22 -04:00
resource Relations overhaul (requires new DB upgrade from 4.0) 2015-06-01 20:28:30 -04:00
styles@188e5914c7 Update submodules, repotime, and versions 2015-02-10 00:13:42 -05:00
test Update Zotero.Relations.updateUser() for new relations schema 2015-06-04 20:38:49 -04:00
translators@daa1a05939 Update translators 2015-02-10 22:52:53 -05:00
.gitmodules Unit testing infrastructure 2015-03-07 16:34:55 -05:00
.travis.yml Reenable Travis testing 2015-05-19 04:07:45 -04:00
chrome.manifest Add Ukrainian locale 2014-05-16 14:51:49 -04:00
COPYING Switch client code license to Affero GPL version 3 2011-05-18 18:34:22 +00:00
install.rdf Merge branch '4.0' into api_syncing 2015-04-13 02:01:43 -04:00
README.md Update Travis badge for master branch 2015-05-22 03:00:58 -04:00
update.rdf Merge branch '4.0' into api_syncing 2015-04-13 02:01:43 -04:00

Zotero

Build Status

Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources.

For more information on how to use this source code, see the Zotero wiki.