wb-positioning-jssdk
Version:
Produce universal library with webpack and es6
33 lines (26 loc) • 667 B
JavaScript
/* global describe, it, before */
import chai from 'chai';
import {Cat, Dog} from '../lib/webpack-library-starter.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');
});
});
});