larsgw / citation.js

Citation.js converts formats like BibTeX, Wikidata JSON and ContentMine JSON to CSL-JSON to convert to other formats like APA, Vancouver and back to BibTeX.
https://citation.js.org/
MIT License
222 stars 30 forks source link

Proper web request mocking #134

Closed larsgw closed 6 years ago

larsgw commented 6 years ago

Now that all web requests in Citation.js go via the util implementations (509d911836c7cb7adbc57440ce21a703308e01ff), it seems like a good idea to properly mock those web requests. I couldn't before because of https://github.com/larsgw/citation.js/issues/68#issuecomment-326906209. Unfortunately, setting up mocks for Node.js and browsers at the same time is difficult, so this might take some time.