# All files / src/api/methods getNodeStatus.js

100% Statements 7/7
100% Branches 4/4
100% Functions 1/1
100% Lines 7/7

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    131x
    3x
    3x
    1x

    2x
    1x

    1x

     module.exports = async (bridgeState, app) => {
      const status = await app.status();
      if (status.sync_info.catching_up) {
        return 'catching-up';
      }

      if (bridgeState.checkCallsCount > 0) {
        return 'waiting-for-period';
      }

      return 'ok';
    };