"use strict";

var CheckboxCard = require('./checkbox-card');
describe('CheckboxCard', function () {
  it('should calculate count for selected options on a CheckboxCard', function () {
    var card = new CheckboxCard({
      details: {
        countLabel: 'Locks/Tags',
        selectedOptions: [{
          count: 1,
          value: 'Shut Off utility.'
        }, {
          count: 2,
          value: 'Lock bleed valve open.'
        }]
      }
    });
    expect(card.details.count).toEqual(3);
  });
});