From 121209379996bb9397108babaf7ee9f1bf33d391 Mon Sep 17 00:00:00 2001 From: Richard Hillman Date: Mon, 11 Jan 2021 09:26:44 -0800 Subject: [PATCH 1/2] test file spacers --- __tests__/app.test.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/__tests__/app.test.js b/__tests__/app.test.js index d460449..1773518 100644 --- a/__tests__/app.test.js +++ b/__tests__/app.test.js @@ -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); @@ -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 @@ -98,9 +100,9 @@ describe('mockingly_instagram routes', () => { postId: '1', comment: "I'm here for this" }) - }) +// ------------------------------------------ it('Get all grams from the website', async () => { @@ -122,6 +124,7 @@ describe('mockingly_instagram routes', () => { }]) }); +// ------------------------------------------ it('Get a gram from the website', async () => { @@ -142,6 +145,8 @@ describe('mockingly_instagram routes', () => { }) }); +// ------------------------------------------ + it('Updates a gram on website', async () => { const response = await agent @@ -161,6 +166,8 @@ describe('mockingly_instagram routes', () => { }) }); +// ------------------------------------------ + it('DELETE a comment from a post', async () => { const response = await agent @@ -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 @@ -186,7 +194,6 @@ describe('mockingly_instagram routes', () => { caption: "felt cute might delete later, nah", tags: ['#sorrynotsorry', '#blessblessbless'] }) - }) }); From a3d96ced80525db68b42604947d42b3b2865f681 Mon Sep 17 00:00:00 2001 From: Richard Hillman Date: Mon, 11 Jan 2021 15:18:34 -0800 Subject: [PATCH 2/2] cleaner --- __tests__/app.test.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/__tests__/app.test.js b/__tests__/app.test.js index 1773518..32f3111 100644 --- a/__tests__/app.test.js +++ b/__tests__/app.test.js @@ -196,4 +196,15 @@ describe('mockingly_instagram routes', () => { }) }) +// ------------------------------------------ + + it('gets top ten most popular posts', async () => { + + expect('Just Do it').toEqual( + 'Just Do it' + ) + }) + +// ------------------------------------------ + });