Skip to content

Commit a9cf7b6

Browse files
MatteoDiteratvanekrachelk585
committed
working on
Co-authored-by: Adam Vanek <[email protected]> Co-authored-by: rachelk585 <[email protected]>
1 parent ff58fbe commit a9cf7b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

__tests__/componentReducer.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,14 @@ describe('componentReducer Test', () => {
193193
(comp) => comp.id === state.canvasFocus.componentId
194194
);
195195
// expect the style property on targeted comp to equal style property in payload
196+
if (styledComp) {
196197
expect(styledComp.style.backgroundColor).toEqual(
197198
action.payload.style.backgroundColor
199+
198200
);
201+
}
199202
});
203+
200204
});
201205

202206
// TEST 'UPDATE PROJECT NAME'

0 commit comments

Comments
 (0)