Skip to content

Commit 872530c

Browse files
committed
fixing css test
1 parent 135db6f commit 872530c

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

__tests__/contextReducer.test.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import subject from '../app/src/redux/reducers/slice/contextReducer';
1+
import subject from '../app/src/redux/reducers/slice/contextReducer.ts';
22

33
describe('contextReducer test', () => {
44
let state;
55

66
beforeEach(() => {
77
state = {
8-
allContext: []
8+
allContext: [],
99
};
1010
});
1111

@@ -25,16 +25,16 @@ describe('contextReducer test', () => {
2525
const action = {
2626
type: 'context/addContext',
2727
payload: {
28-
name: 'Theme Context'
29-
}
28+
name: 'Theme Context',
29+
},
3030
};
3131

3232
it('adds a context', () => {
3333
const { allContext } = subject(state, action);
3434
expect(allContext[0]).toEqual({
3535
name: 'Theme Context',
3636
values: [],
37-
components: []
37+
components: [],
3838
});
3939
});
4040

@@ -49,7 +49,7 @@ describe('contextReducer test', () => {
4949
});
5050
});
5151

52-
//OLD ADD CONTEX TEST
52+
// OLD ADD CONTEX TEST
5353

5454
// describe('ADD_CONTEXT', () => {
5555
// const action = {
@@ -86,9 +86,9 @@ describe('contextReducer test', () => {
8686
{
8787
name: 'Theme Context',
8888
values: [],
89-
components: []
90-
}
91-
]
89+
components: [],
90+
},
91+
],
9292
};
9393
});
9494

@@ -97,8 +97,8 @@ describe('contextReducer test', () => {
9797
payload: {
9898
name: 'Theme Context',
9999
inputKey: 'Theme Color',
100-
inputValue: 'Dark'
101-
}
100+
inputValue: 'Dark',
101+
},
102102
};
103103

104104
it('adds a key-value pair to values array of the specified context', () => {
@@ -123,21 +123,21 @@ describe('contextReducer test', () => {
123123
{
124124
name: 'Theme Context',
125125
values: [],
126-
components: []
126+
components: [],
127127
},
128128
{
129129
name: 'To be deleted',
130130
values: [],
131-
components: []
132-
}
133-
]
131+
components: [],
132+
},
133+
],
134134
};
135135

136136
action = {
137137
type: 'context/deleteContext',
138138
payload: {
139-
name: 'Theme Context'
140-
}
139+
name: 'Theme Context',
140+
},
141141
};
142142
});
143143

@@ -161,22 +161,22 @@ describe('contextReducer test', () => {
161161
{
162162
name: 'Theme Context',
163163
values: [],
164-
components: []
165-
}
166-
]
164+
components: [],
165+
},
166+
],
167167
};
168168
});
169169

170170
const action = {
171171
type: 'context/addComponentToContext',
172172
payload: {
173173
context: {
174-
name: 'Theme Context'
174+
name: 'Theme Context',
175175
},
176176
component: {
177-
name: 'Main Component'
178-
}
179-
}
177+
name: 'Main Component',
178+
},
179+
},
180180
};
181181

182182
it('adds a new component to the specified context', () => {

0 commit comments

Comments
 (0)