Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions __tests__/app.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const app = require('../lib/app');
const UserService = require('../lib/services/UserService');
const { globalAgent } = require('https');

// ------------------------------------------

describe('mockingly_instagram routes', () => {
const agent = request.agent(app);
Expand Down Expand Up @@ -79,9 +80,10 @@ describe('mockingly_instagram routes', () => {
caption: "felt cute might delete later",
tags: ['sorrynotsorry', 'blessblessbless']
});

});

// ------------------------------------------

it('POST a comment to our post', async () => {

const response = await agent
Expand All @@ -98,9 +100,9 @@ describe('mockingly_instagram routes', () => {
postId: '1',
comment: "I'm here for this"
})

})

// ------------------------------------------

it('Get all grams from the website', async () => {

Expand All @@ -122,6 +124,7 @@ describe('mockingly_instagram routes', () => {
}])
});

// ------------------------------------------

it('Get a gram from the website', async () => {

Expand All @@ -142,6 +145,8 @@ describe('mockingly_instagram routes', () => {
})
});

// ------------------------------------------

it('Updates a gram on website', async () => {

const response = await agent
Expand All @@ -161,6 +166,8 @@ describe('mockingly_instagram routes', () => {
})
});

// ------------------------------------------

it('DELETE a comment from a post', async () => {

const response = await agent
Expand All @@ -172,9 +179,10 @@ describe('mockingly_instagram routes', () => {
postId: '1',
comment: "I'm here for this"
})

})

// ------------------------------------------

it('DELETE a post', async () => {

const response = await agent
Expand All @@ -186,7 +194,17 @@ describe('mockingly_instagram routes', () => {
caption: "felt cute might delete later, nah",
tags: ['#sorrynotsorry', '#blessblessbless']
})
})

// ------------------------------------------

it('gets top ten most popular posts', async () => {

expect('Just Do it').toEqual(
'Just Do it'
)
})

// ------------------------------------------

});