Skip to content

Commit ccab98f

Browse files
committed
Fixes: #28 - Added more test cases
1 parent 274243f commit ccab98f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tests/index-test.js

+12-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react'
33
import { render, ReactDOM, unmountComponentAtNode } from 'react-dom'
44
import { mount } from "enzyme";
55
import Component from 'src/'
6-
6+
import ReactButton from '../src/button'
77
describe('Component', () => {
88
let node
99
let props;
@@ -48,4 +48,15 @@ describe('Component', () => {
4848
const wrappingDiv = divs.first();
4949
expect(wrappingDiv.children()).toEqual(ractPagination().children());
5050
});
51+
52+
it("always renders a `ReactButton`", () => {
53+
expect(ractPagination().find(ReactButton).length).toBe(3);
54+
});
55+
56+
it("it sends props it needs", () => {
57+
const reactButton = ractPagination().find(ReactButton).first();
58+
expect(Object.keys(reactButton.props()).length).toBe(4);
59+
});
60+
61+
5162
});

0 commit comments

Comments
 (0)