mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup automated app tests (#9779)
This commit is contained in:
committed by
Nathan Walker
parent
6437352fed
commit
a8f2c4d14b
@@ -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;
|
||||
// }
|
||||
// );
|
||||
|
||||
Reference in New Issue
Block a user