Initial test setup

This commit is contained in:
2019-07-05 22:38:18 +02:00
parent 65cde5e137
commit ddfa81a458
13 changed files with 4800 additions and 34 deletions

View File

@@ -32,12 +32,12 @@ const theme = {
};
const Wrapper = styled.View``;
const List = styled.View`
export const List = styled.View`
padding-left: 10px;
border-left-width: 10px;
border-color: ${props => props.color || 'black' }
`;
const Row = styled.View`
export const Row = styled.View`
margin: 10px;
`;

View File

@@ -1,4 +1,4 @@
export const proxyConsole = window.console;
export const proxyConsole = global.console;
class Log {
constructor() {

View File

@@ -1,4 +1,4 @@
const proxied = window.XMLHttpRequest.prototype.open;
const proxied = global.XMLHttpRequest ? global.XMLHttpRequest.prototype.open : () => {};
let currentId = 0;
class Network {
@@ -46,7 +46,7 @@ class Network {
attach() {
const me = this;
const headers = {};
window.XMLHttpRequest.prototype.open = function proxyOpen (...args) {
global.XMLHttpRequest.prototype.open = function proxyOpen (...args) {
let sendArgs;
const [
method,
@@ -100,7 +100,7 @@ class Network {
}
detach() {
window.XMLHttpRequest.prototype.open = proxied;
global.XMLHttpRequest.prototype.open = proxied;
}
}