Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Fix ListPage integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
voidxnull committed Feb 13, 2017
1 parent 85bdfae commit 9792fd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/pages/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('ListPage', () => {
});

it('user can open / and see posting form', async () => {
let context = await expect({ url: '/', session: sessionId }, 'to open successfully');
let context = await expect({ url: '/feed', session: sessionId }, 'to open successfully');

let document = jsdom(context.httpResponse.body);

Expand All @@ -86,7 +86,7 @@ describe('ListPage', () => {
it('user can open / and see 1 post there', async () => {
const posts = [];
posts.push(await createPost(user));
const context = await expect({ url: '/', session: sessionId }, 'to open successfully');
const context = await expect({ url: '/feed', session: sessionId }, 'to open successfully');

const document = jsdom(context.httpResponse.body);

Expand All @@ -101,7 +101,7 @@ describe('ListPage', () => {
for (let i = 0; i < LOAD_MORE_LIMIT + 1; ++i) { // create one more posts than limit on list page
posts.push(await createPost(user));
}
const context = await expect({ url: '/', session: sessionId }, 'to open successfully');
const context = await expect({ url: '/feed', session: sessionId }, 'to open successfully');

const document = jsdom(context.httpResponse.body);

Expand Down

0 comments on commit 9792fd0

Please sign in to comment.