File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 52
52
"coveralls" : " ^2.11.11" ,
53
53
"cross-env" : " ^2.0.0" ,
54
54
"css-loader" : " ^0.23.1" ,
55
+ "enzyme" : " ^2.4.1" ,
55
56
"express" : " ^4.14.0" ,
56
57
"extract-text-webpack-plugin" : " ^1.0.1" ,
57
58
"file-loader" : " ^0.9.0" ,
68
69
"phantomjs-prebuilt" : " ^2.1.7" ,
69
70
"raw-loader" : " ^0.5.1" ,
70
71
"react-ace" : " ^3.4.1" ,
72
+ "react-addons-test-utils" : " ^15.3.0" ,
73
+ "react-dom" : " ^15.3.0" ,
71
74
"react-hot-loader" : " ^1.3.0" ,
72
75
"react-router" : " ^2.0.0" ,
73
76
"react-router-redux" : " ^4.0.2" ,
Original file line number Diff line number Diff line change 1
1
import { EditComponentFactory , DetailsComponentFactory } from '../src/index' ;
2
2
import { expect } from 'chai' ;
3
3
4
-
5
4
describe ( "Factory creation" , function ( ) {
6
5
it ( "User requests an edit factory" , function ( done ) {
7
6
@@ -17,9 +16,7 @@ describe("Factory creation", function() {
17
16
'group' : 'FieldGroup'
18
17
} ;
19
18
20
- let factory = EditComponentFactory ;
21
-
22
- expect ( factory . defaultFieldComponents ) . to . be . deep . equal ( correctConfig ) ;
19
+ expect ( EditComponentFactory . defaultFieldComponents ) . to . be . deep . equal ( correctConfig ) ;
23
20
done ( )
24
21
} ) ;
25
22
@@ -36,9 +33,7 @@ describe("Factory creation", function() {
36
33
'group' : 'FieldGroup'
37
34
} ;
38
35
39
- let factory = DetailsComponentFactory ;
40
-
41
- expect ( factory . defaultFieldComponents ) . to . be . deep . equal ( correctConfig ) ;
36
+ expect ( DetailsComponentFactory . defaultFieldComponents ) . to . be . deep . equal ( correctConfig ) ;
42
37
done ( )
43
38
} )
44
39
} ) ;
You can’t perform that action at this time.
0 commit comments