"use strict";

var _require = require('./tenants.constant'),
  findCampusByUri = _require.findCampusByUri,
  findCampusByCampusCode = _require.findCampusByCampusCode,
  institutionByCampusCode = _require.institutionByCampusCode,
  getCampus = _require.getCampus,
  getMainCampusCode = _require.getMainCampusCode,
  campusCodeToTenantCode = _require.campusCodeToTenantCode;
var tenants = require('./tenants.constant');
describe('Tenant Constant', function () {
  it('should get campuses for an institution by campuscode', function () {
    expect(institutionByCampusCode('03').length).toEqual(2);
  });
  it('should get campus with name/shortname by campusCode', function () {
    var expected = tenants[0].campusList[3];
    expect(getCampus('03')).toEqual(expected);
  });
  it('should return main campus code for health affiliation campus code', function () {
    expect(getMainCampusCode('03_H')).toEqual('03');
  });
  it('should return campus by campus code', function () {
    expect(findCampusByCampusCode('03').uri).toEqual('urn:mace:incommon:ucdavis.edu');
  });
  it('should return campus by uri', function () {
    expect(findCampusByUri('urn:mace:incommon:ucdavis.edu').campusCode).toEqual('03');
  });
  it('should return tenantCode from campusCode', function () {
    expect(campusCodeToTenantCode('00')).toEqual('UC');
  });
});