chore: cleanup automated app tests (#9779)

This commit is contained in:
Igor Randjelovic
2022-02-21 23:25:52 +01:00
committed by Nathan Walker
parent 6437352fed
commit a8f2c4d14b
8 changed files with 61 additions and 43 deletions

View File

@@ -1,17 +1,15 @@
postMessage('stub');
// todo: figure out why this worker is including the whole core and not just the Http module
// ie. tree-shaking is not working as expected here. (same setup works in a separate app)
// import { initGlobal } from '@nativescript/core/globals/index';
// initGlobal();
import { getString } from '@nativescript/core/http';
declare var postMessage: any;
getString('https://httpbin.org/get').then(
function (r) {
postMessage(r);
},
function (e) {
throw e;
}
);
//
// import { getString } from '@nativescript/core/http';
//
// getString('https://httpbin.org/get').then(
// function (r) {
// postMessage(r);
// },
// function (e) {
// throw e;
// }
// );