File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -58,18 +58,28 @@ describe('Test the BottomTabs component', () => {
58
58
} ) ;
59
59
} ) ;
60
60
61
- describe ( 'Test All 10 default HTML elements have rendered ' , ( ) => {
61
+ describe ( 'Test HTMLPanel Component ' , ( ) => {
62
62
const target = shallow (
63
63
< DndProvider backend = { HTML5Backend } >
64
64
< StateContext . Provider value = { initialState } >
65
65
< HTMLPanel />
66
66
</ StateContext . Provider >
67
67
</ DndProvider >
68
68
) ;
69
- // comment out snapshot test because we modified UI intentionally
69
+
70
+ const props = {
71
+ name : 'abc' ,
72
+ key :'html-abc' ,
73
+ id :1 ,
74
+ Icon :'icon' ,
75
+ handleDelete : jest . fn ( )
76
+ } ;
77
+
70
78
it ( 'Matches snapshot' , ( ) => {
71
79
expect ( target ) . toMatchSnapshot ( ) ;
72
80
} ) ;
81
+ it ( 'Should render HTMLItem' , ( ) => {
82
+ expect ( target . find ( < HTMLItem { ...props } /> ) ) . toBeDefined ( ) ;
73
83
} ) ;
74
84
75
85
// testing for AppContainer
@@ -131,3 +141,12 @@ describe('Test NavBar component', () => {
131
141
} ) ;
132
142
} ) ;
133
143
144
+ describe ( 'Test LeftContainer container' , ( ) => {
145
+ const target = shallow ( < LeftContainer /> ) ;
146
+
147
+ it ( 'Should render HTMLPanel' , ( ) => {
148
+ expect ( target . find ( < HTMLPanel /> ) ) . toBeDefined ( ) ;
149
+ } ) ;
150
+ } ) ;
151
+
152
+
Original file line number Diff line number Diff line change @@ -283,6 +283,10 @@ const formatCode = (code: string) => {
283
283
// } else {
284
284
// return window.api.formatCode(code);
285
285
// }
286
+ < < < << << HEAD
287
+ = === ===
288
+
289
+ >>> >>> > 63636136 af04d0e7331ea9149f07a11672488847
286
290
return code ;
287
291
288
292
} ;
You can’t perform that action at this time.
0 commit comments