@financial-times/n-concept
Version:
n-concept provides a card for concepts (e.g. topic, author) and their articles
16 lines (13 loc) • 515 B
JavaScript
const ConceptPresenter = require('../../presenters/concept');
const chai = require('chai');
const expect = chai.expect;
describe('Concept Presenter', () => {
it('has a imageURL getter that returns a string', () => {
const inst = new ConceptPresenter({taxonomy: 'foo'});
expect(typeof inst.imageUrl).to.equal('string');
});
it('has a responsiveGrids getter that returns a string', () => {
const inst = new ConceptPresenter({'show': {}});
expect(typeof inst.responsiveGrids).to.equal('string');
});
});