runtimejs / runtime

[not maintained] Lightweight JavaScript library operating system for the cloud
http://runtimejs.org
Apache License 2.0
1.93k stars 128 forks source link

[wip] Tests & tests infrastructure #132

Open iefserge opened 7 years ago

iefserge commented 7 years ago

Setting up better infrastructure for tests. Those are low level kernel APIs.

For example, this line will poweroff runtime.js when there is nothing else to do (no listeners and empty event loop) or in case of an error.

__SYSCALL.onexit = __SYSCALL.poweroff;

Promise. Those are global to match browser APIs.

Possibly unhandled promise rejection: Error: oops
    at /index.js:48:11
    at /index.js:97:3
    at Module.require (__loader:203:11)
    at Object.require (__loader:218:27)
    at __loader:242:10
    at __loader:246:3
Unhandled promise rejection has been handled.

Adding actual tests is in progress