Merge branch 'fix-tests' into 'develop'
Fix tests from TSX conversion See merge request soapbox-pub/soapbox-fe!1576
This commit is contained in:
commit
1dbb1662a7
|
@ -1074,13 +1074,13 @@ describe('expandFollowers()', () => {
|
||||||
describe('when logged in', () => {
|
describe('when logged in', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
const state = rootReducer(undefined, {})
|
const state = rootReducer(undefined, {})
|
||||||
.set('user_lists', ImmutableMap({
|
.set('user_lists', {
|
||||||
followers: ImmutableMap({
|
followers: ImmutableMap({
|
||||||
[id]: ImmutableMap({
|
[id]: {
|
||||||
next: 'next_url',
|
next: 'next_url',
|
||||||
}),
|
},
|
||||||
}),
|
}),
|
||||||
}))
|
})
|
||||||
.set('me', '123');
|
.set('me', '123');
|
||||||
store = mockStore(state);
|
store = mockStore(state);
|
||||||
});
|
});
|
||||||
|
@ -1088,13 +1088,13 @@ describe('expandFollowers()', () => {
|
||||||
describe('when the url is null', () => {
|
describe('when the url is null', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
const state = rootReducer(undefined, {})
|
const state = rootReducer(undefined, {})
|
||||||
.set('user_lists', ImmutableMap({
|
.set('user_lists', {
|
||||||
followers: ImmutableMap({
|
followers: ImmutableMap({
|
||||||
[id]: ImmutableMap({
|
[id]: {
|
||||||
next: null,
|
next: null,
|
||||||
}),
|
},
|
||||||
}),
|
}),
|
||||||
}))
|
})
|
||||||
.set('me', '123');
|
.set('me', '123');
|
||||||
store = mockStore(state);
|
store = mockStore(state);
|
||||||
});
|
});
|
||||||
|
@ -1232,13 +1232,13 @@ describe('expandFollowing()', () => {
|
||||||
describe('when logged in', () => {
|
describe('when logged in', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
const state = rootReducer(undefined, {})
|
const state = rootReducer(undefined, {})
|
||||||
.set('user_lists', ImmutableMap({
|
.set('user_lists', {
|
||||||
following: ImmutableMap({
|
following: ImmutableMap({
|
||||||
[id]: ImmutableMap({
|
[id]: {
|
||||||
next: 'next_url',
|
next: 'next_url',
|
||||||
}),
|
},
|
||||||
}),
|
}),
|
||||||
}))
|
})
|
||||||
.set('me', '123');
|
.set('me', '123');
|
||||||
store = mockStore(state);
|
store = mockStore(state);
|
||||||
});
|
});
|
||||||
|
@ -1246,13 +1246,13 @@ describe('expandFollowing()', () => {
|
||||||
describe('when the url is null', () => {
|
describe('when the url is null', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
const state = rootReducer(undefined, {})
|
const state = rootReducer(undefined, {})
|
||||||
.set('user_lists', ImmutableMap({
|
.set('user_lists', {
|
||||||
following: ImmutableMap({
|
following: ImmutableMap({
|
||||||
[id]: ImmutableMap({
|
[id]: {
|
||||||
next: null,
|
next: null,
|
||||||
}),
|
},
|
||||||
}),
|
}),
|
||||||
}))
|
})
|
||||||
.set('me', '123');
|
.set('me', '123');
|
||||||
store = mockStore(state);
|
store = mockStore(state);
|
||||||
});
|
});
|
||||||
|
@ -1498,11 +1498,11 @@ describe('expandFollowRequests()', () => {
|
||||||
describe('when logged in', () => {
|
describe('when logged in', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
const state = rootReducer(undefined, {})
|
const state = rootReducer(undefined, {})
|
||||||
.set('user_lists', ImmutableMap({
|
.set('user_lists', {
|
||||||
follow_requests: ImmutableMap({
|
follow_requests: {
|
||||||
next: 'next_url',
|
next: 'next_url',
|
||||||
}),
|
},
|
||||||
}))
|
})
|
||||||
.set('me', '123');
|
.set('me', '123');
|
||||||
store = mockStore(state);
|
store = mockStore(state);
|
||||||
});
|
});
|
||||||
|
@ -1510,11 +1510,11 @@ describe('expandFollowRequests()', () => {
|
||||||
describe('when the url is null', () => {
|
describe('when the url is null', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
const state = rootReducer(undefined, {})
|
const state = rootReducer(undefined, {})
|
||||||
.set('user_lists', ImmutableMap({
|
.set('user_lists', {
|
||||||
follow_requests: ImmutableMap({
|
follow_requests: {
|
||||||
next: null,
|
next: null,
|
||||||
}),
|
},
|
||||||
}))
|
})
|
||||||
.set('me', '123');
|
.set('me', '123');
|
||||||
store = mockStore(state);
|
store = mockStore(state);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue