UNPKG

odata

Version:

o.js is a isomorphic Odata Javascript library to simplify the request of data. The main goal is to build a standalone, lightweight and easy to understand Odata lib.

10 lines (8 loc) 275 B
// global-mocks.js const fetchPolyfill = require('whatwg-fetch'); global.fetch = fetchPolyfill.fetch; global.Request = fetchPolyfill.Request; global.Headers = fetchPolyfill.Headers; global.Response = fetchPolyfill.Response; // let's simulate browser for tests. window = {};