Home Reference Source

src/components/datamap/DataMap.unit.js

import Harness from '../../../test/harness';
import DataMapComponent from './DataMap';
import { comp1 } from './fixtures';

describe('DataMap Component', () => {
  it('Should build a data map component', () => {
    return Harness.testCreate(DataMapComponent, comp1);
  });

  it('Should get and set values within the datamap.', () => {
    return Harness.testCreate(DataMapComponent, comp1).then((component) => {
      Harness.testSetGet(component, {
        one: 'One',
        two: 'Two',
        three: 'Three'
      });
    });
  });
});