Fix tests from TSX conversion

environments/review-fix-tests-qgtzul/deployments/386
Justin 2 years ago
parent e785fd2c63
commit 1519bfa969

@ -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…
Cancel
Save