Skip to content

Commit 135db6f

Browse files
committed
working on css ts test
1 parent 3c3cba9 commit 135db6f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

__tests__/componentReducer.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ describe('componentReducer Test', () => {
175175
});
176176

177177
// TEST 'UPDATE CSS'
178-
describe('updateCss', () => {
178+
xdescribe('updateCss', () => {
179179
it('should add style to focused component', () => {
180180
const action: Action = {
181181
type: 'appState/updateCss',
@@ -192,16 +192,13 @@ describe('componentReducer Test', () => {
192192
const styledComp = state.components.find(
193193
(comp) => comp.id === state.canvasFocus.componentId
194194
);
195-
console.log('state components', state.components, 'component id', state.canvasFocus.componentId)
196195
// expect the style property on targeted comp to equal style property in payload
197196
if (styledComp) {
198197
expect(styledComp.style.backgroundColor).toEqual(
199198
action.payload.style.backgroundColor
200-
201199
);
202200
}
203201
});
204-
205202
});
206203

207204
// TEST 'UPDATE PROJECT NAME'

0 commit comments

Comments
 (0)