Skip to content

Commit 310cc73

Browse files
committed
fixup
1 parent 5aebeb2 commit 310cc73

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/components/connect.spec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,8 +1150,8 @@ describe('React', () => {
11501150

11511151
it('calls mapState and mapDispatch for impure components', () => {
11521152
const store = createStore(() => ({
1153-
foo: "foo",
1154-
bar: "bar"
1153+
foo: 'foo',
1154+
bar: 'bar'
11551155
}));
11561156

11571157
const mapStateSpy = expect.createSpy();
@@ -1166,7 +1166,7 @@ describe('React', () => {
11661166
const decorator = connect(
11671167
(state, {storeGetter}) => {
11681168
mapStateSpy();
1169-
return {value: state[storeGetter.storeKey]}
1169+
return {value: state[storeGetter.storeKey]};
11701170
},
11711171
mapDispatchSpy,
11721172
null,
@@ -1176,7 +1176,7 @@ describe('React', () => {
11761176

11771177
class StatefulWrapper extends Component {
11781178
state = {
1179-
storeGetter: {storeKey: "foo"}
1179+
storeGetter: {storeKey: 'foo'}
11801180
};
11811181

11821182
render() {
@@ -1195,16 +1195,16 @@ describe('React', () => {
11951195

11961196
const target = TestUtils.findRenderedComponentWithType(tree, Passthrough);
11971197
const wrapper = TestUtils.findRenderedComponentWithType(tree, StatefulWrapper);
1198-
expect(target.props.statefulValue).toEqual("foo");
1198+
expect(target.props.statefulValue).toEqual('foo');
11991199

12001200
// Impure update
12011201
const storeGetter = wrapper.state.storeGetter;
1202-
storeGetter.storeKey = "bar";
1202+
storeGetter.storeKey = 'bar';
12031203
wrapper.setState({ storeGetter });
12041204

12051205
expect(mapStateSpy.calls.length).toBe(3);
12061206
expect(mapDispatchSpy.calls.length).toBe(3);
1207-
expect(target.props.statefulValue).toEqual("bar");
1207+
expect(target.props.statefulValue).toEqual('bar');
12081208
});
12091209

12101210
it('should pass state consistently to mapState', () => {

0 commit comments

Comments
 (0)