"use strict";

var BioDetails = require('./bio-details');
describe('BioDetails Model', function () {
  it('validate schema', function () {
    var bioLibraryItem = {
      type: 'BIOLOGICAL',
      name: 'Drosophila bocki',
      tags: ['Invertebrates'],
      details: {
        materialType: 'Invertebrates',
        riskGroup: '1',
        category: 'Animals',
        knownPathogens: ''
      }
    };
    var bioDetails = new BioDetails(bioLibraryItem.details);
    var validate = bioDetails.validate();
    expect(validate.valid).toBeTruthy();
  });
});