'use strict';

import EventMap from 'eventmap';
import Base from 'flockn/base';

describe('flockn/base', function () {

  it('is a function', function () {
    expect(Base).to.be.a('function');
  });

  describe('constructor', function () {
    it('can be instantiated', function () {
      var base = new Base();

      expect(base).to.be.a('object');
      expect(base).to.be.an.instanceOf(Base);
    });

    it('inherits from EventMap', function() {
      var base = new Base();

      expect(base).to.be.an.instanceOf(EventMap);
    })
  });
});

@@ -539,13 +539,223 @@
 %7D)%0A  %7D);
+%0A%0A  describe('properties', function() %7B%0A    var base = new Base();%0A%0A    it('has the correct type', function() %7B%0A      expect(base.type).to.be.a('string');%0A      expect(base.type).to.equal('Base');%0A    %7D);%0A  %7D);
 %0A%7D);%0A

Update base test