File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import React from 'react'
3
3
import { render , ReactDOM , unmountComponentAtNode } from 'react-dom'
4
4
import { mount } from "enzyme" ;
5
5
import Component from 'src/'
6
-
6
+ import ReactButton from '../src/button'
7
7
describe ( 'Component' , ( ) => {
8
8
let node
9
9
let props ;
@@ -48,4 +48,15 @@ describe('Component', () => {
48
48
const wrappingDiv = divs . first ( ) ;
49
49
expect ( wrappingDiv . children ( ) ) . toEqual ( ractPagination ( ) . children ( ) ) ;
50
50
} ) ;
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
+
51
62
} ) ;
You can’t perform that action at this time.
0 commit comments