"use strict";
var chai_1 = require('chai');
var TestHelper_1 = require('../../helpers/TestHelper');
var index_1 = require('./index');
/** Mock App. State */
var state = {
stars: {
count: 61,
isFetching: false,
},
};
describe('<Counter />', function () {
var component = TestHelper_1.renderComponent(index_1.Stars, state);
it('Renders with correct style', function () {
var s = require('./style.css');
chai_1.expect(component.find(s.stars)).to.exist;
});
it('Renders header', function () {
chai_1.expect(component.find('div').text()).to.eql('61');
});
});
|