'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var chai_js = require('aegir/utils/chai.js');

function expectIsPingResponse(obj) {
  chai_js.expect(obj).to.have.a.property('success');
  chai_js.expect(obj).to.have.a.property('time');
  chai_js.expect(obj).to.have.a.property('text');
  chai_js.expect(obj.success).to.be.a('boolean');
  chai_js.expect(obj.time).to.be.a('number');
  chai_js.expect(obj.text).to.be.a('string');
}
function isPong(pingResponse) {
  return Boolean(pingResponse && pingResponse.success && !pingResponse.text);
}

exports.expectIsPingResponse = expectIsPingResponse;
exports.isPong = isPong;
