all files / containers/Stars/ index.test.tsx

100% Statements 11/11
100% Branches 0/0
100% Functions 3/3
100% Lines 11/11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23                       
"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');
    });
});