File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import reducer from '../app/src/redux/reducers/slice/appStateSlice' ;
2
2
import { State , Action } from '../app/src/interfaces/Interfaces' ;
3
3
import { initialState } from '../app/src/redux/reducers/slice/appStateSlice' ;
4
+ import styled from '@emotion/styled' ;
4
5
5
6
describe ( 'componentReducer Test' , ( ) => {
6
7
let state : State = initialState ;
@@ -173,15 +174,15 @@ describe('componentReducer Test', () => {
173
174
expect ( state . canvasFocus . childId ) . toEqual ( null ) ;
174
175
} ) ;
175
176
} ) ;
176
-
177
+
177
178
// TEST 'UPDATE CSS'
178
179
xdescribe ( 'updateCss' , ( ) => {
179
180
it ( 'should add style to focused component' , ( ) => {
180
181
const action : Action = {
181
182
type : 'appState/updateCss' ,
182
183
payload : {
183
184
style : {
184
- backgroundColor : 'gray'
185
+ backgroundColor : 'gray' ,
185
186
} ,
186
187
contextParam : {
187
188
allContext : [ ]
@@ -192,6 +193,7 @@ describe('componentReducer Test', () => {
192
193
const styledComp = state . components . find (
193
194
( comp ) => comp . id === state . canvasFocus . componentId
194
195
) ;
196
+ console . log ( 'styledcomp' , styledComp . style )
195
197
// expect the style property on targeted comp to equal style property in payload
196
198
if ( styledComp ) {
197
199
expect ( styledComp . style . backgroundColor ) . toEqual (
You can’t perform that action at this time.
0 commit comments