Migrated tests to jest
Used jest-codemods to migrate, will have to pass everything by hand before we can merge.
This commit is contained in:
@ -1,8 +0,0 @@
|
||||
const httpGet = (url, callback, err = console.error) => {
|
||||
const request = new XMLHttpRequest();
|
||||
request.open('GET', url, true);
|
||||
request.onload = () => callback(request.responseText);
|
||||
request.onerror = () => err(request);
|
||||
request.send();
|
||||
};
|
||||
module.exports = httpGet;
|
||||
Reference in New Issue
Block a user