All files innet.ts

83.33% Statements 10/12
0% Branches 0/1
100% Functions 2/2
83.33% Lines 10/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 212x     2x 2x     20x 20x     2x 20x         20x   20x 20x
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var plugins_1 = require("./plugins");
var appStack = [];
var handlerStack = [];
function pushApp(app, handler) {
    appStack.push(app);
    handlerStack.push(handler);
}
function innet(app, handler) {
    if (appStack.length) {
        pushApp(app, handler);
  I      return;
    }
    pushApp(app, handler);
    while (appStack.length) {
        (0, plugins_1.runPlugins)(appStack.pop(), handlerStack.pop());
    }
}
exports.default = innet;