datatable/test/regrid.spec.js
2017-09-19 23:28:19 +05:30

33 lines
650 B
JavaScript

/* global describe, it, before */
import chai from 'chai';
import {Cat, Dog} from '../lib/regrid.js';
chai.expect();
const expect = chai.expect;
let lib;
describe('Given an instance of my Cat library', () => {
before(() => {
lib = new Cat();
});
describe('when I need the name', () => {
it('should return the name', () => {
expect(lib.name).to.be.equal('Cat');
});
});
});
describe('Given an instance of my Dog library', () => {
before(() => {
lib = new Dog();
});
describe('when I need the name', () => {
it('should return the name', () => {
expect(lib.name).to.be.equal('Dog');
});
});
});