"use strict";

var Helper = require('./inspect.helper');
var _require = require('../constant/inspect/inspect-finding-status.constant'),
  NOT_RESOLVED = _require.NOT_RESOLVED;
describe('Inspect Helper', function () {
  it('should return true if there is any unresolved incident', function () {
    var document = {
      findings: [{
        description: 'Medical Compressed Gas cylinders are stored upright, secured, and not in a location obstructing medical gas valve equipment, electrical panels, or fire-life safety equipment.',
        incidents: [{
          value: 'NOT_COMPLIANT',
          status: NOT_RESOLVED
        }]
      }]
    };
    expect(Helper.hasUnresolvedIncident(document)).toBeTruthy();
  });
});